xdebug

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
Brian Taylor
Posts: 5
Joined: Sat May 12, 2007 9:45 pm

xdebug

Post by Brian Taylor »

I was trying out the xdebug and found that I'm having problems. When I go to set a break point it just jumps over all the break points I set. Is there something I'm missing that is causing it to do this? The step doesn't seem to work either. Also is there any other feature to the xdebug other that to set up break points, see the out put and step? Can you watch vars? Maybe I'm missing something. Could we get a quick tutorial on the xdebug and how to work it?

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

Post by Karlis »

Please read this very carefully:
http://www.blumentals.net/rapidphp/faq. ... =hpd_debug

Follow instructions very carefully. If there are further problems, see xDebug documentation on their site as well. It does work, we have tested on several computers, so there is no bug, at least with our own PHP/xDebug package which you can download from our site.
Karlis Blumentals
Blumentals Software
www.blumentals.net
avent
Posts: 19
Joined: Mon May 14, 2007 9:06 pm

Post by avent »

I've almost the same above problem with the breakpoint.
I set it but running it is simply ignored and the script run completly without any kind of error message.
In the menu I see, after the run command, that the 'stop' button is then active also if the script is completed, while the buttons 'step over', 'step into' and 'step out' never in my experiment have been seen active.
Probably could be a my error setting xdebug in WAMP5 1.7.1a (http://www.wampserver.com) also all appear to good.

I'ld be happy if you could build some script or other facility to set up xdebugger in WAMP5 or similar system like EasyPhp or XAMPP.
This could be a very usefull thing for beginners like me.

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

Post by Karlis »

Try our own PHP installation with the built-in web server (no need to configure mappings, just save your file out of the range of existing mappings).
Karlis Blumentals
Blumentals Software
www.blumentals.net
Brian Taylor
Posts: 5
Joined: Sat May 12, 2007 9:45 pm

xdebug

Post by Brian Taylor »

Still can't get xdebug to work. When to http://www.blumentals.net/rapidphp/faq. ... =hpd_debug and followed the instructions. I used your install file, installed it in my programs directory and then pointed to the php.exe file. Reload rapid php and set break points and it doesn't stop at the break points it just blows threw them. Also the step in and out never get activated. I also asked some people that have debugger to see if they could figure it out nope no luck. There are three of us using the xdebug and none of us can get it to work. If it’s working for you could we get a tutorial on how to use it?

Thank,
Brian
Brian Taylor
Posts: 5
Joined: Sat May 12, 2007 9:45 pm

xdebug

Post by Brian Taylor »

Ok I just reinstalled it now it’s working. Did anything change?

Thanks,
Brian
avent
Posts: 19
Joined: Mon May 14, 2007 9:06 pm

Post by avent »

Karlis wrote:Try our own PHP installation with the built-in web server (no need to configure mappings, just save your file out of the range of existing mappings).
Ok now works,
also, almost randomly, debugging simple spripts I get an error message from Rapid PHP :'The specified URL could not be opened'.
For the test I used the calendar script provided in the library inserted in a void php script and also the file generated by template php calendar.
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Does the error "break" the debugging? Or is it a simple useless nagging?
Karlis Blumentals
Blumentals Software
www.blumentals.net
avent
Posts: 19
Joined: Mon May 14, 2007 9:06 pm

Post by avent »

Karlis wrote:Does the error "break" the debugging? Or is it a simple useless nagging?
It doesn't break debugging
Brian Taylor
Posts: 5
Joined: Sat May 12, 2007 9:45 pm

xDebug still having problems

Post by Brian Taylor »

Thought I had it working but the thing is buggy. I installed your PHP/xDebug package and pointed to the php.exe. The firewall is turned off. I have the current version of Rapid php installed. I can't set break points and the step buttons never get activated. Also I keep getting Debugger Error[Code: 5] command is not available. :(
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

It does work for me on 4 PCs and for others, so it should work for you too. You just need to use the same combination of things, and I would suggest to install php.exe to a pathname without spaces, e.g. c:\php\php.exe

Here is the default fool-proof procedure:
1) Get php installed to c:\php\ or the default folder, use our php package, keep WeBuilder closed while you do this.
2) Do not use mappings
3) Use built-in webserver
4) Make sure path to php.exe is set correctly
5) Make sure path to php-cgi.exe is set correctly in the internal web server settings
Karlis Blumentals
Blumentals Software
www.blumentals.net
Bode
Posts: 3
Joined: Sun Jul 22, 2007 8:53 am

Re: xDebug still having problems

Post by Bode »

FYI...

I figured out why the "Debugger Error[Code: 5]" kept appearing.
Check out:
http://xdebug.org/docs-dbgp.php#debugger-engine-errors

Apparently if you don't have any breakpoints set then don't RUN it through the debugger. I suppose this makes sense because debugging is only used to step through the code and examine the variables, otherwise just use the preview feature.

Bode
qbuster
Posts: 9
Joined: Wed Nov 07, 2007 2:50 pm
Location: Alrewas, Staffs UK

Re: xDebug still having problems

Post by qbuster »

Bode wrote:FYI...

I figured out why the "Debugger Error[Code: 5]" kept appearing.
Check out:
http://xdebug.org/docs-dbgp.php#debugger-engine-errors

Apparently if you don't have any breakpoints set then don't RUN it through the debugger. I suppose this makes sense because debugging is only used to step through the code and examine the variables, otherwise just use the preview feature.

Bode
Thanks for that....it solved my problems!

Cheers

Will
Post Reply