Xdebug - breakpoints don't work [message #63722] |
Fri, 21 December 2007 05:12 |
Eclipse User |
|
|
|
Originally posted by: alexf.itechwebhosting.com
I can't get breakpoints to work with xdebug. I'm using M1 on Windows
Vista. I'm trying to debug a simple PHP script using the CLI version of
PHP. I have the "PHP -> PHP Executables" settings set properly. But the
IDE will not store the settings that I set under "PHP -> Debug". I set
Xdebug as my PHP Debugger and set the Default PHP executable, and hit
"Apply" and then "OK". But when I come back to those settings, they are
back at default with the "Zend Debugger".
Alex
|
|
|
|
Re: Xdebug - breakpoints don't work [message #63836 is a reply to message #63744] |
Tue, 25 December 2007 04:40 |
Eclipse User |
|
|
|
Originally posted by: alexf.itechwebhosting.com
Sorry for the late response... my answers are below:
Dave Kelsey wrote:
> Hi Alex, so just to clarify, you cannot define an executable with the
> PHP Debugger set to XDebug ?
I can define a PHP Executable without any issue. The PHP executable
settings have Xdebug defined in the PHP.ini file and that is the one
being pointed to.
The problem is setting the PHP Debug settings (PHP/Debug in the menu
tree). I set PHP Debugger to XDebug, and Default PHP Executable to the
one I have defined. I then hit "Apply" and "OK". When I go back to the
same panel, the settings reverted back to the default.
> every time you do, when you go back it has been reset to the Zend
> Debugger ?
Yes.
>
> How did you get M1 ? was it the all in one ?
Yes. All-in-one file.
> did you get it via the
> update site through eclipse Install/Update ? or did you download the
> plugin package and installed it yourself.
I downloaded the entire Zip file for Windows and unzipped it in my C:\
path. All the Eclipse files are under C:\eclipse
>
> Anyway, the case you have described was bug which was fixed before M1
> was released. I have just downloaded M1 (all in one) and I can define an
> exe with xdebug, so the fix is there in that version.
I downloaded the M1 file on 12/18. Is it possible that the fix did not
make it into the Windows version? Again, I have no problem defining an
Exe. It's the setting for Debug that's an issue.
>
> Try starting eclipse with the -clean option (eg eclipse -clean) to see
> if that helps it could be
> you have old versions of the plugins present.
I unzipped M1 into a clean directory. I even deleted my workspace
directory but I still have the same problem. Using "-clean" does not help.
>
> Thanks
> Dave Kelsey
>
> Alex wrote:
>> I can't get breakpoints to work with xdebug. I'm using M1 on Windows
>> Vista. I'm trying to debug a simple PHP script using the CLI version of
>> PHP. I have the "PHP -> PHP Executables" settings set properly. But the
>> IDE will not store the settings that I set under "PHP -> Debug". I set
>> Xdebug as my PHP Debugger and set the Default PHP executable, and hit
>> "Apply" and then "OK". But when I come back to those settings, they are
>> back at default with the "Zend Debugger".
>>
>> Alex
|
|
|
|
Re: Xdebug - breakpoints don't work [message #63904 is a reply to message #63836] |
Wed, 26 December 2007 11:42 |
Eclipse User |
|
|
|
Originally posted by: dkel50.hotnospmail.com
Hi Alex, ok I see the bug you are describing. I suggest you raise a
bugzilla about it.
However you should be able to still debug a script using xdebug. If you
click the PHP Executables tab in preferences and define your php
executable and select it to be XDebug that should stay as xdebug (This
was the bug I was refering to, this also used to reset back to zend).
When you create a script launch, you will be able to select the PHP
Debugger as XDebug and the PHP Executable will be available from the one
you defined in preferences.
This works for me.
Dave Kelsey
Alex wrote:
> Sorry for the late response... my answers are below:
>
> Dave Kelsey wrote:
>> Hi Alex, so just to clarify, you cannot define an executable with the
>> PHP Debugger set to XDebug ?
>
> I can define a PHP Executable without any issue. The PHP executable
> settings have Xdebug defined in the PHP.ini file and that is the one
> being pointed to.
>
> The problem is setting the PHP Debug settings (PHP/Debug in the menu
> tree). I set PHP Debugger to XDebug, and Default PHP Executable to the
> one I have defined. I then hit "Apply" and "OK". When I go back to the
> same panel, the settings reverted back to the default.
>
>> every time you do, when you go back it has been reset to the Zend
>> Debugger ?
>
> Yes.
>
>> How did you get M1 ? was it the all in one ?
>
> Yes. All-in-one file.
>
>> did you get it via the
>> update site through eclipse Install/Update ? or did you download the
>> plugin package and installed it yourself.
>
> I downloaded the entire Zip file for Windows and unzipped it in my C:\
> path. All the Eclipse files are under C:\eclipse
>
>> Anyway, the case you have described was bug which was fixed before M1
>> was released. I have just downloaded M1 (all in one) and I can define an
>> exe with xdebug, so the fix is there in that version.
>
> I downloaded the M1 file on 12/18. Is it possible that the fix did not
> make it into the Windows version? Again, I have no problem defining an
> Exe. It's the setting for Debug that's an issue.
>
>> Try starting eclipse with the -clean option (eg eclipse -clean) to see
>> if that helps it could be
>> you have old versions of the plugins present.
>
> I unzipped M1 into a clean directory. I even deleted my workspace
> directory but I still have the same problem. Using "-clean" does not help.
>
>> Thanks
>> Dave Kelsey
>>
>> Alex wrote:
>>> I can't get breakpoints to work with xdebug. I'm using M1 on Windows
>>> Vista. I'm trying to debug a simple PHP script using the CLI version of
>>> PHP. I have the "PHP -> PHP Executables" settings set properly. But the
>>> IDE will not store the settings that I set under "PHP -> Debug". I set
>>> Xdebug as my PHP Debugger and set the Default PHP executable, and hit
>>> "Apply" and then "OK". But when I come back to those settings, they are
>>> back at default with the "Zend Debugger".
>>>
>>> Alex
|
|
|
Re: Xdebug - breakpoints don't work [message #63927 is a reply to message #63836] |
Wed, 26 December 2007 12:15 |
Eclipse User |
|
|
|
Originally posted by: dkel50.hotnospmail.com
I guess you are trying to "Debug As-->PHP Script", and that isn't
working. So what you need to do is to select the "Run" Menu and Select
"Open Debug Dialog...". Hightligt PHP Script and press the "New" Button.
This panel will let you create the debug launch for your script and you
should be able to select XDebug as the PHP Debugger, the PHP Executable
you defined should then appear in the next field and you can then select
the PHP File you wish to debug.
I hope this helps.
But please raise a defect on bugzilla with what you have found
Cheers
Dave Kelsey
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03155 seconds