support for exception and conditional breakpoints?

View: New views
4 Messages — Rating Filter:   Alert me  

support for exception and conditional breakpoints?

by Chris Kutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the RubyRecentChanges wiki page is this entry for July 10

  • Support for Exception Breakpoints
  • Support for Conditional Breakpoints
1, If I right-click in the Breakpoints window and choose New Breakpoint, I get a dialog box to set an exception breakpont. It asks for an exception class. I tried adding a breakpoint for ActiveRecord::RecordNotFound and for RecordNotFound, but I do not see the debugger stopping when these exceptions occur. I even added this line to my controller to make sure the exception happened:     raise ActiveRecord::RecordNotFound, along with the rescue block so the app wouldn't stop.

Can someone give me a working example of how to use exception breakpoints, so I can write it up? When the exception occurs, where does the app stop at?

2. How do I set conditional breakpoints?


Re: support for exception and conditional breakpoints?

by Martin Krauskopf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Chris Kutler wrote:

> In the RubyRecentChanges wiki page is this entry for July 10
>
>     * Support for Exception Breakpoints
>     * Support for Conditional Breakpoints
>
> 1, If I right-click in the Breakpoints window and choose New Breakpoint,
> I get a dialog box to set an exception breakpont. It asks for an
> exception class. I tried adding a breakpoint for
> ActiveRecord::RecordNotFound and for RecordNotFound, but I do not see
> the debugger stopping when these exceptions occur.

[...]
Erno has encountered the same issue today. Might be regression in latest
builds. Could you file it? Thanks.

> 2. How do I set conditional breakpoints?

Set normal breakpoint and edit it. Either in breakpoint view or
right-click it in the editor stripe. Breakpoint | Properties.

        m.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: support for exception and conditional breakpoints?

by Chris Kutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message



Martin Krauskopf wrote:
>
>> 2. How do I set conditional breakpoints?
>
> Set normal breakpoint and edit it. Either in breakpoint view
Can you be more specific on how to edit a breakpoint in the breakpoint
view in order to create a conditional breakpoint? I right-clicked all
over and couldn't find the right combination.

> or right-click it in the editor stripe. Breakpoint | Properties.
This does work. However, this breaks the debugger. I will make a note of
it in the bug that I just filed about exception breakpoints.
>
>     m.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: support for exception and conditional breakpoints?

by Martin Krauskopf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Chris Kutler wrote:

>
>
> Martin Krauskopf wrote:
>>
>>> 2. How do I set conditional breakpoints?
>>
>> Set normal breakpoint and edit it. Either in breakpoint view
> Can you be more specific on how to edit a breakpoint in the breakpoint
> view in order to create a conditional breakpoint? I right-clicked all
> over and couldn't find the right combination.
Right click breakpoint in the Breakpoint View, choose Customize. There
you might specify breakpoint condition.

>> or right-click it in the editor stripe. Breakpoint | Properties.
> This does work. However, this breaks the debugger. I will make a note of
> it in the bug that I just filed about exception breakpoints.

See attached screenshots.

        m.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

break-cond1.png (8K) Download Attachment
break-cond2.png (9K) Download Attachment