Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Getting PHP Debugging To Work
Getting PHP Debugging To Work [message #817966] Sat, 10 March 2012 23:44 Go to next message
kyle fgdffg is currently offline kyle fgdffg
Messages: 1
Registered: March 2012
Junior Member
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 13:00 Go to previous message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 351
Registered: July 2009
Location: Japan
Senior Member
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...)
Previous Topic:HTML changes not reflected when debugging
Next Topic:Problem with Code Explorer (Eclipce 3.7.0 + PDT 3.0.0 + ZendDebugger)
Goto Forum:
  


Current Time: Sat Oct 25 20:43:06 GMT 2014

Powered by FUDForum. Page generated in 0.01755 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software