Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Xdebug - breakpoints don't work
Xdebug - breakpoints don't work [message #63722] Fri, 21 December 2007 05:12 Go to next message
Eclipse UserFriend
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 #63744 is a reply to message #63722] Fri, 21 December 2007 10:34 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Hi Alex, so just to clarify, you cannot define an executable with the PHP Debugger set to XDebug ?
every time you do, when you go back it has been reset to the Zend Debugger ?

How did you get M1 ? was it the all in one ? did you get it via the update site through eclipse
Install/Update ? or did you download the plugin package and installed it yourself.

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.

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.

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 #63836 is a reply to message #63744] Tue, 25 December 2007 04:40 Go to previous messageGo to next message
Eclipse UserFriend
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
->Buttons(Restore Defaults/Apply) of 'PHP Debug' preference don't work [message #63882 is a reply to message #63836] Tue, 25 December 2007 09:38 Go to previous messageGo to next message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
Registered: July 2009
Location: Japan
Senior Member
(No one calls listener)
You can add bug report into Bugzilla.
Re: Xdebug - breakpoints don't work [message #63904 is a reply to message #63836] Wed, 26 December 2007 11:42 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Xdebug - breakpoints don't work [message #75874 is a reply to message #63722] Mon, 14 July 2008 14:52 Go to previous messageGo to next message
Andreas Goetz is currently offline Andreas GoetzFriend
Messages: 110
Registered: July 2009
Senior Member
Opened bug and proposed patch in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=240140

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 #75954 is a reply to message #75874] Tue, 15 July 2008 02:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: euthanasia_waltz.yahoo.co.jp.localhost

The issue of this thread consisted in PDT 1.0.2 and it had been fixed on
1.0.3.
You should not mix up 1.0.x and 2.0(not yet released).
Re: Xdebug - breakpoints don't work [message #75968 is a reply to message #75954] Tue, 15 July 2008 03:59 Go to previous message
Eclipse UserFriend
Originally posted by: euthanasia_waltz.yahoo.co.jp.localhost

Oops, Sorry, this is my mistake.
Previous Topic:syntax error, unexpected 'version'
Next Topic:debugging questions
Goto Forum:
  


Current Time: Tue Jan 31 04:51:11 GMT 2023

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

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

Back to the top