debug icon indicating copy to clipboard operation
debug copied to clipboard

DEBUGGER_.warn when skipping breakpoint because of RUBY_DEBUG_SKIP_PATH

Open marianosimone opened this issue 2 years ago • 3 comments

Your proposal If a user sets a breakpoint in a path that is skipped because of RUBY_DEBUG_SKIP_PATH, it would be helpful to log a warning whenever the breakpoint would have stopped if the configuration wasn't there.

Additional context Sometimes I set up RUBY_DEBUG_SKIP_PATH for the most common case, but eventually end up having to dig deeper than usual, and add a breakpoint in a skipped path. After the debugger failing to stop there for a couple of times, I realize the problem and change the configuration.

It would be useful for the debugger to tell me that I have a breakpoint in a skipped path, to help me realize my error faster.

marianosimone avatar Jul 07 '23 10:07 marianosimone

warn on setting breakpoint?

ko1 avatar Sep 25 '23 08:09 ko1

It might be useful to have the warning when setting the breakpoint, too. However, I think that it should also show a warning when the breakpoint would have been hit, as setting RUBY_DEBUG_SKIP_PATH can happen in a different session (e.g: I set the breakpoint, work on things for a while, then configure RUBY_DEBUG_SKIP_PATH, and finally debug again)

marianosimone avatar Oct 07 '23 21:10 marianosimone

log level is next issue.

ko1 avatar Dec 28 '23 02:12 ko1