Debugger Error [Code: 5] Command is not available

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
PaulH
Posts: 4
Joined: Sun Jul 20, 2008 4:50 pm

Debugger Error [Code: 5] Command is not available

Post by PaulH »

Using Rapid PHP 2008 version 9.0.0.97
I uninstalled the trial version and installed the paid for version when I bought it.

I read that we had to uninstall before installing the paid version in order to get rid of the error when running scripts that says "Debugger Error [Code: 5] Command is not available"

However, even after I unintsall and then reinstall I still get this error, which happens when I run PHP scripts. (Menu: PHP > Debug > Run).

How do I get rid of this error which shows every time a PHP script is run?

Thank you.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: Debugger Error [Code: 5] Command is not available

Post by Karlis »

You must have correct debugger and PHP version installed. This error happens if the versions do not match or if there is a misconfiguration.

I recommend to use our PHP + xDebug package instead of your own PHP installation. You can download it here:
http://download.blumentals.net/php5xd.exe

You will have to make it work with your web server if you want to run PHP files through external web server. Built-in webserver can also run most of your PHP files. Some valuable info on debugging and previewing PHP files can be found in our knowledge base:
http://kb.blumentals.net/kb/index.php?CategoryID=5
Karlis Blumentals
Blumentals Software
www.blumentals.net
PaulH
Posts: 4
Joined: Sun Jul 20, 2008 4:50 pm

Re: Debugger Error [Code: 5] Command is not available

Post by PaulH »

Hi Karlis,

Thank you so much for your reply. Before reading it, I noticed that the problem has disappeared. That is to say, I didn't do anything and now everything is working fine!

I will file your reply to help me in future if I ever need to reinstall the package. Thank you.
dvanatta
Posts: 7
Joined: Tue Jul 03, 2007 11:41 pm

Re: Debugger Error [Code: 5] Command is not available

Post by dvanatta »

I'm getting the same error.

I installed the PHP + xDebug package + Rapid PHP 2008 and have been debugging fine but now am getting that error.

I uninstalled the PHP + xDebug package, uninstalled Rapid 2008 and rebooted the machine. Re-installed both and still get that error.

Help!
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: Debugger Error [Code: 5] Command is not available

Post by chrisjlocke »

dvanatta- What versions of php / debugger? Where are you downloading them from?
dvanatta
Posts: 7
Joined: Tue Jul 03, 2007 11:41 pm

Re: Debugger Error [Code: 5] Command is not available

Post by dvanatta »

User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: Debugger Error [Code: 5] Command is not available

Post by Karlis »

Are you sure you did not update the PHP or web server or xDebug? Maybe a change in PHP config started to cause the problem?
Karlis Blumentals
Blumentals Software
www.blumentals.net
lumpycam
Posts: 3
Joined: Thu Aug 28, 2008 12:55 pm

Re: Debugger Error [Code: 5] Command is not available

Post by lumpycam »

I'm getting the same issue.
As a new customer, I was wanting the Debug capability desperately. Have a project due to go live very soon.
Had a previous installation of PHP 5.2.6 and could not get debugger working so downgraded using the package supplied on your website.
Run phpinfo script and get the following versions:

PHP Version: 5.2.5
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Xdebug v2.0.2, Copyright (c) 2002-2007, by Derick Rethans

Have also tried the the xDebug module v. 2.0.3 with same issue.
All site functionlity still works.
Need to get this resolved ASAP so any help appreciated.
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: Debugger Error [Code: 5] Command is not available

Post by chrisjlocke »

lumpycam- Are you using the built-in web server?
http://kb.blumentals.net/kb/index.php?V ... EntryID=84
User avatar
chrisjlocke
Top Contributor
Posts: 995
Joined: Mon Aug 01, 2005 4:12 pm
Location: Essex, UK
Contact:

Re: Debugger Error [Code: 5] Command is not available

Post by chrisjlocke »

Been playing with this at lunchtime, and got the same error. Interestingly, if you add a breakpoint, does it work for you?
http://www.creapsoft.co.uk/winks/rapidphp_debug/
lumpycam
Posts: 3
Joined: Thu Aug 28, 2008 12:55 pm

Re: Debugger Error [Code: 5] Command is not available

Post by lumpycam »

Yes.
I wasn't able to get the preview working with the internal web server but was able to get it working using IIS.
I was able to replicate your results.

I've gone back and tried with my code and I can now debug.

Cam
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: Debugger Error [Code: 5] Command is not available

Post by Karlis »

The code 5 error does occur sometimes if you do not place any breakpoint. It is a false bogus error. We will try to fix it in one of the next updates.
Karlis Blumentals
Blumentals Software
www.blumentals.net
adammoro
Posts: 7
Joined: Mon Aug 25, 2008 1:45 am

Re: Debugger Error [Code: 5] Command is not available

Post by adammoro »

Not sure if this helps but I'm getting the error now just after editing php.ini. all i did was (try to) enable an extension by uncommenting one of the listed dll files and set the "extension_dir" to "C:\php525xd\ext". I at first thought that I set the path wrong but that doesn't seem to be the problem as the extension now works and I no longer get the following error:

"PHP Warning: PHP Startup: Unable to load dynamic library '/ext\php_curl.dll' - The specified module could not be found."
lumpycam
Posts: 3
Joined: Thu Aug 28, 2008 12:55 pm

Re: Debugger Error [Code: 5] Command is not available

Post by lumpycam »

Not an expert - but you may want to experiment with the way you use / and \ as folder delimiters. Had a similar problem recently.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Re: Debugger Error [Code: 5] Command is not available

Post by Karlis »

lumpycam wrote:Not an expert - but you may want to experiment with the way you use / and \ as folder delimiters. Had a similar problem recently.
This is a very likely cause.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply