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
To what extent output by the R process is printed to the debug console.
38
39
39
40
## 3. Launch Config
41
+
### 3.1 Launch Requests
42
+
These configurations are specified by the entry `"request": "launch"`.
43
+
In this mode, a new R process is started in the background for each debug session and its stdin/stdout/stderr are handled by the VS Code extension.
44
+
This is ideal to make the debugger as powerful and robust as possible.
45
+
40
46
The main behaviour of a debug session can be configured with the entry `"debugMode"`,
41
47
which can be one of the values `"function"`, `"file"`, and `"workspace"`.
42
48
The intended usecases for these modes are:
@@ -62,6 +68,28 @@ The R process is always launched in the workspace folder (reading the `.Rprofile
62
68
The name of the main function to be debugged. Must be callable without arguments.
63
69
*`"allowGlobalDebugging"`: Whether to keep the R session running after debugging and evaluate expressions from the debug console.
64
70
Essential for debug moge `"workspace"`, optional for `"file"`, usually not sensible for `"function"`.
71
+
72
+
### 3.2 Attach Requests
73
+
These configurations are specified by the entry `"request": "attach"`.
74
+
In this mode, the debugger is attached to an already running R process.
75
+
To answer the requests sent by VS Code, the function `.vsc.listenForDAP()` must be called manually.
76
+
This mode is ideal to give the user a more direct access to the R process.
77
+
78
+
This mode should work fine with the defaults, but can be finetuned with the following config entries:
79
+
80
+
*`"port"`: Port number where vscDebugger is listening for DAP messages. Defaults to 18721.
81
+
*`"host"`: Host name where vscDebugger is listening for DAP messages. Defaults to "localhost".
82
+
*`"useCustomSocket"`:
83
+
Whether to use a separate socket for custom events.
84
+
Is necessary to allow flow control (stepping through code).
85
+
*`"customPort"`: Port number of custom socket. Leave emtpy/0 to assign automatically.
86
+
*`"customHost"`: Host name of custom socket. Leave empty to use localhost.
87
+
*`"splitOverwrittenOutput"`:
88
+
Whether to show the overwritten output in the normal stdout/stderr as well.
89
+
90
+
91
+
### 3.3 Shared config entries
92
+
These configuration entries are used in both modes.
65
93
*`"setBreakpointsInPackages"`:
66
94
Whether to try and set breakpoints in exported functions from ALL packages.
67
95
Very slow!
@@ -116,6 +144,6 @@ If no values are set, the defaults listed below are used.
116
144
*`"vsc.showEvaluateName" = TRUE`: Whether to include an evaluate name to copy variables to another R session. Can be disabled for performance reasons when working with large variables/lists/vectors.
117
145
*`"vsc.showInternalFrames" = FALSE`: Whether to show the frames on the bottom of the stack that belong to the R package
118
146
*`"vsc.supportSetVariable" = TRUE`: Whether to enable support for settings the value of variables from the variables window
119
-
*`"vsc.supportTerminateRequest" = TRUE`: Whether to try and exit only the main function/file when stop (Shift+F5) is used, preserving the R session itself.
147
+
*`"vsc.supportTerminateRequest" = FALSE`: Whether to try and exit only the main function/file when stop (Shift+F5) is used, preserving the R session itself.
120
148
*`"vsc.trySilent" = TRUE`: Whether to hide error messages that are expected and caught by the R package
121
149
*`"vsc.verboseVarInfos" = FALSE`: Whether to print debug info when retrieving info about variables
0 commit comments