Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Xdebug plugin : disabling breakpoints
Xdebug plugin : disabling breakpoints [message #30646] Thu, 21 June 2007 22:54 Go to next message
Eclipse UserFriend
Originally posted by: yched.drupal.free.fr

While debugging a script, if you disable / remove a breakpoint, it seems
to remain 'valid' until execution of the current script ends.

It's annoying when you set a breakpoint, say, in the middle of a loop,
iterate one or two times, saw what you had to see, and want to let
execution end normally without stopping for the 50 remaining iterations :-)

I'm aware of the 'disconnect' button, but it ends execution altogether,
and there are times when you simply _have_ to let the script finish
(because breaking execution would lead the db in an awkward state, for
instance).

Y. Ch.
Re: Xdebug plugin : disabling breakpoints [message #30681 is a reply to message #30646] Fri, 22 June 2007 08:52 Go to previous messageGo to next message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Removal should work, however you cannot remove a breakpoint while a script
is running. What should happen in that case is the remove is not sent to
XDebug until the script suspends again. This is a restriction in the way
XDebug currently works.

Can you confirm whether you remove the breakpoint while the script is running
or while the script was suspended.

Also what version of XDebug and the XDebug plug-in you are using as well as
what operating system ?

If you still have a problem, you could look at using conditions to determine
when a breakpoint should activate or not. The PDF guide should give you more
info on breakpoint conditions.

Thanks
Dave Kelsey


Yves Chedemois wrote:
> While debugging a script, if you disable / remove a breakpoint, it seems
> to remain 'valid' until execution of the current script ends.
>
> It's annoying when you set a breakpoint, say, in the middle of a loop,
> iterate one or two times, saw what you had to see, and want to let
> execution end normally without stopping for the 50 remaining iterations :-)
>
> I'm aware of the 'disconnect' button, but it ends execution altogether,
> and there are times when you simply _have_ to let the script finish
> (because breaking execution would lead the db in an awkward state, for
> instance).
>
> Y. Ch.
Re: Xdebug plugin : disabling breakpoints [message #30715 is a reply to message #30681] Fri, 22 June 2007 10:49 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: yched.drupal.free.fr

Dave Kelsey a ecrit le 22/06/2007 10:52:
> Removal should work, however you cannot remove a breakpoint while a script
> is running. What should happen in that case is the remove is not sent to
> XDebug until the script suspends again. This is a restriction in the way
> XDebug currently works.
>
> Can you confirm whether you remove the breakpoint while the script is
> running
> or while the script was suspended.

Yes, I should have made it clearer that the issue was _while_ debuggung
a script. Removed / disabled breakpoints are not actually removed until
current execution finished.
Well, if it's an Xdebug limitation, then so be it :-)

Lots of thnks Dave for this awesome on with this plugin, and for your
fast answers here.

Y. Ch.
Re: Xdebug plugin : disabling breakpoints [message #30745 is a reply to message #30715] Fri, 22 June 2007 11:47 Go to previous message
D Kelsey is currently offline D KelseyFriend
Messages: 232
Registered: July 2009
Senior Member
Actually they should get removed if the script suspends. This is currently
the only time I can add/update/remove breakpoints from xdebug during the
running of a script.

I know that the question has been raised with the author of xdebug so maybe
in the future the restriction will be removed.

Cheers
Dave Kelsey


Yves Chedemois wrote:
> Dave Kelsey a ecrit le 22/06/2007 10:52:
>> Removal should work, however you cannot remove a breakpoint while a
>> script
>> is running. What should happen in that case is the remove is not sent to
>> XDebug until the script suspends again. This is a restriction in the way
>> XDebug currently works.
>>
>> Can you confirm whether you remove the breakpoint while the script is
>> running
>> or while the script was suspended.
>
> Yes, I should have made it clearer that the issue was _while_ debuggung
> a script. Removed / disabled breakpoints are not actually removed until
> current execution finished.
> Well, if it's an Xdebug limitation, then so be it :-)
>
> Lots of thnks Dave for this awesome on with this plugin, and for your
> fast answers here.
>
> Y. Ch.
Previous Topic:"web static project" configurators
Next Topic:Tabs to spaces not working within PHPDoc comments
Goto Forum:
  


Current Time: Thu Apr 25 15:51:17 GMT 2024

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

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

Back to the top