Getting PHP Debugging To Work [message #817966] |
Sat, 10 March 2012 18:44  |
Eclipse User |
|
|
|
I've been having a hell of a time getting Eclipse to debug my CakePHP application. I've tried reading through several tutorials (none of which were that great). I've tried using both Zend and XDebug.
I'm not even sure on exactly how I'm supposed to be using this thing once it's set up properly.
I tried setting a break point in my PHP code, right-clicking the PHP file in the text editor, and selecting 'debug php web application', but it never hits the break point. It opens up a browser within eclipse with some GET parameters attached to my normal URL: ?debug_host=192.168.1.2%2C127.0.0.1&start_debug=1&debug_port=10000&original_url=http%3A%2F%2Flocalhost%2Fparticipants&send_sess_end=1&debug_stop=1&debug_start_session=1&debug_no_cache=1331422177353&debug_session_id=1000
One thing I wasn't sure about in my project php debugging properties was the PHP executable field. It was automatically set to 'none', so I had to create an entry that pointed to '/usr/bin/php' (image attached to post). Maybe this isn't correct?
I've also attached my phpinfo().
I've never had so much trouble getting a debugger to work in my life..
|
|
|
Re: Getting PHP Debugging To Work [message #818344 is a reply to message #817966] |
Sun, 11 March 2012 09:00  |
Eclipse User |
|
|
|
Make sure your debug configuration. ((menu)Run>Debug Configurations>your config)
>It opens up a browser within eclipse with some GET parameters attached to my normal URL: ?debug_host=192.168.1.2%2C127.0.0.1&start_debug=1&debug_port=10000&original_url=http%3A%2F%2Flocalhost%2Fparticipants&send_sess_end=1&debug_stop=1&debug_start_session=1&debug_no_cache=1331422177353&debug_session_id=1000
It is for ZendDebugger.
And you have Xdebug.
>Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
> with Xdebug v2.1.3, Copyright (c) 2002-2012, by Derick Rethans
No reason to be able to debug.
Also,
>xdebug.remote_enable Off Off
No reason to be able to debug with Xdebug.
BTW,
>One thing I wasn't sure about in my project php debugging properties was the PHP executable field.
It is for CLI. Not for web. None is OK if you don't run/debug php script on the command line.
(multipost is not welcomed in general...)
|
|
|
Powered by
FUDForum. Page generated in 0.03901 seconds