-
Is it possible for the debugger to stop on the line when an exception occurs, so I can inspect scopes and figure out what went wrong? (In this case, in the file "Tree.lua" on line 78.) abc.mp4Is this feature planned? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Yes agreed. This feature could be really beneficial to track down exceptions more quickly. |
Beta Was this translation helpful? Give feedback.
-
On the technical side, I don't see an easy solution at the moment. A possible solution would be to somehow hook into the neovim exception handler (by having a breakpoint inside it), and then return the exception to the dap client. But i'm not sure any of that code is lua. If it is, then it could be possible. |
Beta Was this translation helpful? Give feedback.
-
[...] That's lucky, there seems to be a way to hook into the error handler by redefining the |
Beta Was this translation helpful? Give feedback.
-
Created an issue #73 here to discuss the implementation. |
Beta Was this translation helpful? Give feedback.
Created an issue #73 here to discuss the implementation.