Faster expression debug logging?
已回答
There are many steps to using the debugger to log an expression (F8, cmd-F8, untick suspend, tick 'log evaluated expression', type in required expression, submit).
I'd like a streamlined approach to setting up a non-suspending logging breakpoint. Breaking, selecting and then evaluating an expression often isn't useful (for logging of asynchronous or high-frequency events, etc).
Hence these questions:
- Is there already a quicker approach to this that I've missed?
- If not, would this be achievable with a plugin? (I'll consider writing this myself if there isn't one already; just asking in principle as I don't know the plugin API).
If the answer to both of these is no, I'll submit a Youtrack feature request.
Cheers.
请先登录再写评论。
Hi, the only way now is to select text in the editor and then shift+click on the gutter.
This will set a non-suspending breakpoint with the selected text to be logged.
@Egor, that's very useful. A keyboard shortcut might have been perfect, but this will still be a great time saver. Thank you.