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
If your R path is neither in the Windows registry nor the `PATH` environment variable, make sure to provide a valid path to the R executable in `rdebugger.rterm.*`.
47
+
46
48
**Note on the package version:**
47
49
Since the debugger is still under initial development, both this extension and the accompanying R package are major version 0.y.z.
48
50
The minor version (x.Y.z) is incremented when backward incompatible changes to the interface/communication between the VS Code extension and the R package are introduced.
@@ -51,16 +53,27 @@ The patch version (x.y.Z) is incremented independently for all other changes tha
51
53
52
54
53
55
## Using the Debugger
54
-
* Install this extension in VS Code.
55
-
* Install the package [**vscDebugger**](https://github.com/ManuelHentschel/vscDebugger) in R.
56
-
* If your R path is neither in the Windows registry nor the `PATH` environment variable, make sure to provide a valid path to the R executable in `rdebugger.rterm.*`.
56
+
### Launch Mode
57
57
* Press F5 and select `R Debugger` as debugger. With the default launch configuration, the debugger will start a new R session.
58
58
* To run a file, focus the file in the editor and press F5 (or the continue button in the debug controls)
59
59
* Output will be printed to the debug console,
60
60
expressions entered into the debug console are evaluated in the currently active frame
61
61
* During debugging in the global workspace it is often necessary to click the dummy frame
62
62
in the callstack labelled 'Global Workspace' to see the variables in `.GlobalEnv`.
63
63
64
+
### Attach Mode
65
+
* Start R in a terminal
66
+
* Load `library(vscDebugger)`
67
+
* Call `.vsc.listen()`
68
+
* Start the debugger with launch configuration including `"request":"attach"`, e.g.:
69
+
```json
70
+
{
71
+
"type": "R-Debugger",
72
+
"request": "attach",
73
+
"name": "Attach to R process"
74
+
}
75
+
```
76
+
64
77
## Configuration
65
78
For a detailed explanation of possible launch config entries and other settings, see
0 commit comments