You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the suggestion. I'd really like to add such a mode, but this requires some substantial changes/improvements to the R-package vscDebugger to work properly.
Currently, the "normal" debug mode works by launching a new R process in the background each time you launch the debugger. This is done so that the extension has full control over the input/output and program flow of the R process. Unfortunately, this is incompatible with having the R process run in an internal console and letting the user write to its stdin.
In order to manage the R process yourself, you can use the functions .vsc.listenForDAP() or .vsc.startWebsocket(), together with the debug config Attach to R process from the default launch config. These are rather experimental and buggy, though, so I wouldn't want to add them as a recommended debug mode.
@ManuelHentschel Thank you for your detailed answer. I now understand that it cannot be implemented immediately.
When adding RDebugger to the R container in microsoft/vscode-dev-containers, it seems best to describe the difference between normal execution and debugging behavior in the documentation at this time.
Related to microsoft/vscode-dev-containers#954 (comment)
The Python extension allows we to debug in the integrated terminal instead of the debug console.
https://github.com/microsoft/vscode-dev-containers/blob/6812f841c3e894963b83eefb091bcd7565fc6507/containers/python-3/.vscode/launch.json#L12
It may be easier for beginners to understand if the integrated terminal can be used in the same way as the Run sauce command in vscode-R.
The text was updated successfully, but these errors were encountered: