Xdebug plugin : disabling breakpoints [message #30646] |
Thu, 21 June 2007 22:54 |
Eclipse User |
|
|
|
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 |
D Kelsey 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 |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02804 seconds