-
Notifications
You must be signed in to change notification settings - Fork 11
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
Jupyter Lab R Debugging Advice #143
Comments
Hi Jonah, thanks for raising this issue! Adapting the debug adapter to work with jupyter sounds very interesting. From my experience, the biggest problem with implementing the DAP is that, as far as I know, it's impossible to give flow-control commands (e.g. To overcome this, I wrapped an interactive R session in a "debugger runtime" in typescript. This wrapper mostly just passes DAP-messages through and lets the DAP logic be handled by the code from vscDebugger, but when the debug client requests a step (i.e. I'd exptect the plain R-code from vscDebugger to work fine inside Jupyter notebooks (e.g. settings breakpoints, displaying the call stack, getting info about variables), but implementing flow control feels rather complicated. An approach to solve this might be to implement a different kernel that includes a typescript wrapper (this wrapper could also be implemented in any other language) and passes messages to I'll try to get the jupyterlab-python-debugger running next week and see if I come up with any ideas. If you decide to work on this, I'd suggest focussing on the flow-control. Handling of other DAP messages could probably be copied from vscDebugger. Edit: |
Hi,
This is a more open-ended issue which I'll close immediately, but I'm an RStudio expat and was looking into the possibility of adding R debugging support to jupyter lab using its new Jupyter Debug Protocol. Just going off the blog post it seems like it's mostly used MSFT's Debug Adapter Protocol with some slight modifications [1]. It seems like you already did the majority of the hard work with this VScode R-debugger + vscDebugger!
Do you have any advice for trying to adapt this to work with Jupyter? Going off one of the main jupyter PR's, it looks like some of the specification is still in slight flux, but even a bastardized version would be very useful, for me at least. One of the main things I miss from RStudio is its basic support for
browser()
but it was too buggy with big datasetsThanks
Jonah
[1]
The text was updated successfully, but these errors were encountered: