-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show unverified function breakpoints in debug viewlet #3388
Comments
@alexandrudima console.log is not a global function, so it is not supported by node. Global functions are something like "setTimeout" or this:
The problem is, that the debugger UI does not seem to show errors for function breakpoint. |
ok, sorry my bad, would be nice to get a warning or something |
@alexandrudima I just debugged this and the problem with "console.log" is that it is a native function. The debug adapter returns this error nicely, but it is not shown in the UI: @isidorn we need to find a way to show these errors in the breakpoint viewlet. |
But now, with the previous comment, I am confused. So I can set a function breakpoint for |
@alexandrudima setTimeout is not a a native function: It lives in timers.js. Node behaves like this (even if this does not match our expectation). |
oh, ok, sorry my bad again. |
Assigning to @bgashler1 so he can work on some initial designs for this |
@bgashler1 Great work! For 3) we already have a visual toggle to deactivate, the only new thing here is the seperator for brakpoints - exception breakpoints and that you put breakpoitns on top. Right? I personally like 1A the best and would like to try it out. The only thing that worries me is that all that red might draw the unnecessery attention of a user. Maybe we show this decorations only when a debug session is active - otherwise not show anything (same as we do now).
|
Cool stuff. I think it would be nice to visually separate exception breakpoints from the rest! I also think if we chose to show the breakpoint logo we should do it for all breakpoints, but I would have to see it in action to tell for sure. I also wonder if the checkbox should come first and then the icon? |
We now show the state of breakpoins via icons in the viewlet. |
Testing #2832
I have a breakpoint on
if (_key === key) {
and I've added a function breakpoint forconsole.log
. The breakpoint forif (_key === key) {
is hit, but the console.log near the end is not hit.I tried clicking
Reapply all breakpoints
which did not help in this case.The text was updated successfully, but these errors were encountered: