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
Copy file name to clipboardExpand all lines: configuration.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ The intended usecases for these modes are:
45
45
R Files can be run by focussing a file and pressing `F5`.
46
46
The stack view contains a single dummy frame.
47
47
To view the variables in the global environment it is often necessary to click this frame and expand the variables view!
48
-
This method is 'abusing' the debug adapter protocol to some extent, since the protocol is apparently not designed for ongoing interactive programming in a global workspace.
48
+
This method is 'abusing' the debug adapter protocol to some extent, since the protocol is not designed for ongoing interactive programming in a global workspace.
49
49
*`"file"`: Is pretty much equivalent to launching the debugger with `"workspace"` and immediately calling `.vsc.debugSource()` on a file.
50
50
Is hopefully the behaviour expected by users coming from R Studio etc.
51
51
*`"function"`: The above debug modes introduce significant overhead by passing all input through `eval()` etc.
@@ -69,14 +69,12 @@ Usually, specifying individual packages in `debuggedPackages` is preferred.
69
69
*`"includePackageScopes"`: Set to `true` to view the exported functions/variables of packages in the variable view.
70
70
*`"debuggedPackages"`: List of package names to be debugged.
71
71
These packages are loaded before running the specified file/function.
72
-
Breakpoints and the modified `print`/`cat`/`message` functions are applied in these packages.
73
-
*`"overwritePrint"`: Whether to overwrite the `print` function with a custom version
74
-
that also prints a link to the file and line number in the debug console.
75
-
This overwrite does not affect print statements in packages.
72
+
Breakpoints and the modified `print`/`cat`/`message`/`str` functions are applied in these packages.
73
+
*`"overwritePrint"`: Whether to attach a custom `print` function that also prints a link to the file and line number in the debug console.
76
74
*`"overwriteCat"`: Same as above for `cat()`
75
+
*`"overwriteStr"`: Same as above for `str()`.
77
76
*`"overwriteMessage"`: Same as above for `message()`
78
-
*`"overwriteSource"`: Whether to overwrite the `source` function with a custom version
79
-
that is affected by breakpoints set in VS Code.
77
+
*`"overwriteSource"`: Whether to overwrite the `source` function with a custom version that is affected by breakpoints set in VS Code.
80
78
81
79
82
80
## 4. R Options
@@ -105,6 +103,7 @@ If no values are set, the defaults listed below are used.
105
103
*`"vsc.defaultOverwriteMessage" = TRUE` Default value for the launch config entry `overwriteMessage`
106
104
*`"vsc.defaultOverwritePrint" = TRUE` Default value for the launch config entry `overwritePrint`
107
105
*`"vsc.defaultOverwriteSource" = TRUE` Default value for the launch config entry `overwriteSource`
106
+
*`"vsc.defaultOverwriteStr" = TRUE` Default value for the launch config entry `overwriteStr`
108
107
*`"vsc.defaultSetBreakpointsInPackages" = FALSE` Default value for the launch config entry `setBreakpointsInPackages`
109
108
*`"vsc.dropArrays" = TRUE`: Whether to skip dimensions of size one when showing arrays in the variables window
110
109
*`"vsc.evaluateActiveBindings" = FALSE`: Whether to evaluate active bindings and show the value in the variables view
Copy file name to clipboardExpand all lines: readme.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ For many variables it is also possible to assign a new value to the variable or
19
19
5. Set breakpoints and break on errors.
20
20
6. Control the program flow using *step*, *step in*, *step out*, *continue*.
21
21
7. Output generated by the program is printed to the debug console (filtering out text printed by the browser itself).
22
-
8. The debugger adds a modified version of `print`and `cat` that also print a link to the file and line where the text was printed.
22
+
8. The debugger adds a modified version of `print`, `cat`, `message`, and `str` that also print a link to the file and line where the text was printed.
23
23
9. The debug console allows the execution of arbitrary R code in the currently selected stack frame.
24
24
25
25
@@ -31,8 +31,8 @@ After installing the extension, the R package can be installed using the command
31
31
If this does not work, you can find the source code and compiled binaries on the
Since the debugger is still under initial development, both this extension and the accompanying R package are major version 0.y.z.
48
+
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.
49
+
Compatibility between the two is only intended ("guaranteed") if both have the same minor version.
50
+
The patch version (x.y.Z) is incremented independently for all other changes that justify a new release.
51
+
52
+
46
53
## Using the Debugger
47
54
* Install this extension in VS Code.
48
55
* Install the package [**vscDebugger**](https://github.com/ManuelHentschel/vscDebugger) in R.
0 commit comments