Comments on: How To Setup a Free PHP Debugger using Eclipse PDT + XDebug http://robsnotebook.com/php_debugger_pdt_xdebug Fri, 03 Jul 2009 22:40:06 +0000 http://wordpress.org/?v=2.2.3 By: Thomas Widlar http://robsnotebook.com/php_debugger_pdt_xdebug#comment-67884 Thomas Widlar Fri, 03 Jul 2009 17:39:45 +0000 http://robsnotebook.com/php_debugger_pdt_xdebug#comment-67884 I've decided to have Eclipse CDT as a separate installation. I still confused as to which XDebug to get. I’ve decided to have Eclipse CDT as a separate installation.

I still confused as to which XDebug to get.

]]>
By: Thomas Widlar http://robsnotebook.com/php_debugger_pdt_xdebug#comment-67801 Thomas Widlar Thu, 02 Jul 2009 20:30:00 +0000 http://robsnotebook.com/php_debugger_pdt_xdebug#comment-67801 Rob, I've read your setup instructions. They are very clear. I will probably have simple questions. Is this where I can ask them? 1. I just installed XAMPP under WinXP. I has PHP 5.2.9. What xdebug should I get? [Xdebug 2.0.4 Windows binaries: 5.2 VC6 Non-thread-safe, 5.2 VC6, 5.3 VC6 Non-thread-safe, 5.3 VC6, 5.3 VC9Non-thread-safe, 5.3 VC9] 2. I also have a C project I want to do with Eclipse CDT. Can I put the CDT plugin into the Eclipse PDT, or should I have 2 separate Eclipses? Thanks. Rob, I’ve read your setup instructions. They are very clear. I will probably have simple questions. Is this where I can ask them?

1. I just installed XAMPP under WinXP. I has PHP 5.2.9. What xdebug should I get?
[Xdebug 2.0.4 Windows binaries:
5.2 VC6 Non-thread-safe, 5.2 VC6,
5.3 VC6 Non-thread-safe, 5.3 VC6,
5.3 VC9Non-thread-safe, 5.3 VC9]

2. I also have a C project I want to do with Eclipse CDT. Can I put the CDT plugin into the Eclipse PDT, or should I have 2 separate Eclipses?

Thanks.

]]>
By: Mike Robertson http://robsnotebook.com/php_debugger_pdt_xdebug#comment-66134 Mike Robertson Sun, 14 Jun 2009 16:02:49 +0000 http://robsnotebook.com/php_debugger_pdt_xdebug#comment-66134 Thank you very much for this tutorial, I can now debug my PHP in eclipse, rather than just using echo statements. Thank you very much for this tutorial, I can now debug my PHP in eclipse, rather than just using echo statements.

]]>
By: gopu http://robsnotebook.com/php_debugger_pdt_xdebug#comment-58249 gopu Fri, 03 Apr 2009 08:04:05 +0000 http://robsnotebook.com/php_debugger_pdt_xdebug#comment-58249 Thanks a lot Rob. It's great tutorial, even for a starter in PHP like me, could do it. Nils comment changing the Run->Debug configuration->Server Debugger to use XDebug helped. Thanks a lot Rob. It’s great tutorial, even for a starter in PHP like me, could do it.
Nils comment changing the Run->Debug configuration->Server Debugger to use XDebug helped.

]]>
By: Tilak http://robsnotebook.com/php_debugger_pdt_xdebug#comment-57981 Tilak Wed, 01 Apr 2009 06:13:05 +0000 http://robsnotebook.com/php_debugger_pdt_xdebug#comment-57981 I need some help. I have WAMP installed on C:\wamp. I have the all-in-one PDT from eclipse.org that is installed in C:\php_pzero_ide. This comes with the zend debugger which I have not used yet. This is the simple thing that I want to happen. 1. I create a workspace in C:\php_pzero_ide called MyFirstPHP 2. I write a small hello world test.php in it 3. I have the WAMP server running. When I press the run button on the PDT, it should be able to run the test.php in the internal browser, if there are no errors and display 'Hello World'. However, if there are errors, it will debug through the file line by line ... How can I achieve this simple thing? Thanks so much, in advance! I need some help.
I have WAMP installed on C:\wamp.
I have the all-in-one PDT from eclipse.org that is installed in C:\php_pzero_ide. This comes with the zend debugger which I have not used yet.

This is the simple thing that I want to happen.
1. I create a workspace in C:\php_pzero_ide called MyFirstPHP
2. I write a small hello world test.php in it
3. I have the WAMP server running.

When I press the run button on the PDT, it should be able to run the test.php in the internal browser, if there are no errors and display ‘Hello World’. However, if there are errors, it will debug through the file line by line …

How can I achieve this simple thing?

Thanks so much, in advance!

]]>
By: nils http://robsnotebook.com/php_debugger_pdt_xdebug#comment-53243 nils Tue, 10 Feb 2009 07:30:58 +0000 http://robsnotebook.com/php_debugger_pdt_xdebug#comment-53243 For those of you not hitting breakpoints, I had the same problem. Eclipse was using Zend at port 10000 instead of Xdebug at port 9000. The URL you see should contain somethign like this: XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=12198785081253 If you see a URL with port 10000 in it, then it's still trying to use Zend. Otherwise, use phpinfo() as suggested in teh post to see if Xdebug is running. Cheers Nils For those of you not hitting breakpoints, I had the same problem. Eclipse was using Zend at port 10000 instead of Xdebug at port 9000. The URL you see should contain somethign like this: XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=12198785081253 If you see a URL with port 10000 in it, then it’s still trying to use Zend. Otherwise, use phpinfo() as suggested in teh post to see if Xdebug is running.

Cheers Nils

]]>
By: nils http://robsnotebook.com/php_debugger_pdt_xdebug#comment-53241 nils Tue, 10 Feb 2009 07:24:47 +0000 http://robsnotebook.com/php_debugger_pdt_xdebug#comment-53241 Hi Rob, thanks for the tutorial. Your'e missing one thing though, took me about half a day to find. You can select Xdebug at three different levels: Workspace configuration, Project level configuration and (this one took me half a day) runlevel configuration under RUn -> Run Configurations. Until I had set it to Xdebug there (default was Zend, that's why it kept listening on port 10000, sigh...) it wouldn't work, and never seemed to look at the other two config options. No clue why. Also: I got it working with Netbeans 7.0 m1 without problems, just that I couldn't get conditional breakpoints to work there (Breakpoint Properties option greyed out). And: Eclipse seems to have the slightly more mature PHP development environment, although I have just started playing with both of them. Cheers, Nils Hi Rob, thanks for the tutorial. Your’e missing one thing though, took me about half a day to find.

You can select Xdebug at three different levels: Workspace configuration, Project level configuration and (this one took me half a day) runlevel configuration under RUn -> Run Configurations. Until I had set it to Xdebug there (default was Zend, that’s why it kept listening on port 10000, sigh…) it wouldn’t work, and never seemed to look at the other two config options. No clue why.

Also: I got it working with Netbeans 7.0 m1 without problems, just that I couldn’t get conditional breakpoints to work there (Breakpoint Properties option greyed out). And: Eclipse seems to have the slightly more mature PHP development environment, although I have just started playing with both of them.

Cheers, Nils

]]>
By: john http://robsnotebook.com/php_debugger_pdt_xdebug#comment-51952 john Sat, 31 Jan 2009 17:27:20 +0000 http://robsnotebook.com/php_debugger_pdt_xdebug#comment-51952 Thanks a bunch - some of the eclipse dialogs seemed different when I did this - but it still worked. Thanks a bunch - some of the eclipse dialogs seemed different when I did this - but it still worked.

]]>
By: jayanthi http://robsnotebook.com/php_debugger_pdt_xdebug#comment-50592 jayanthi Thu, 15 Jan 2009 10:33:55 +0000 http://robsnotebook.com/php_debugger_pdt_xdebug#comment-50592 I have done the steps as above , but still i cant open my php file . I have done the steps as above , but still i cant open my php file .

]]>
By: Juan Daugherty http://robsnotebook.com/php_debugger_pdt_xdebug#comment-50062 Juan Daugherty Fri, 09 Jan 2009 01:01:21 +0000 http://robsnotebook.com/php_debugger_pdt_xdebug#comment-50062 BTW, I'm now using PDT 2.0 and can report it does work (even) better than 1.0.x (it's a major overhaul). BTW, I’m now using PDT 2.0 and can report it does work (even) better than 1.0.x (it’s a major overhaul).

]]>