Skip to content

Commit 952d5fa

Browse files
Merge pull request #91 from ManuelHentschel/documentation
Documentation
2 parents 31ab02e + b9af186 commit 952d5fa

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

.vscodeignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
out/test/**
44
src/**
55
.gitignore
6-
vsc-extension-quickstart.md
76
**/tsconfig.json
87
**/.eslintrc.json
98
**/*.map
109
**/*.ts
10+
test/**

configuration.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ The intended usecases for these modes are:
4545
R Files can be run by focussing a file and pressing `F5`.
4646
The stack view contains a single dummy frame.
4747
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.
4949
* `"file"`: Is pretty much equivalent to launching the debugger with `"workspace"` and immediately calling `.vsc.debugSource()` on a file.
5050
Is hopefully the behaviour expected by users coming from R Studio etc.
5151
* `"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.
6969
* `"includePackageScopes"`: Set to `true` to view the exported functions/variables of packages in the variable view.
7070
* `"debuggedPackages"`: List of package names to be debugged.
7171
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.
7674
* `"overwriteCat"`: Same as above for `cat()`
75+
* `"overwriteStr"`: Same as above for `str()`.
7776
* `"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.
8078

8179

8280
## 4. R Options
@@ -105,6 +103,7 @@ If no values are set, the defaults listed below are used.
105103
* `"vsc.defaultOverwriteMessage" = TRUE` Default value for the launch config entry `overwriteMessage`
106104
* `"vsc.defaultOverwritePrint" = TRUE` Default value for the launch config entry `overwritePrint`
107105
* `"vsc.defaultOverwriteSource" = TRUE` Default value for the launch config entry `overwriteSource`
106+
* `"vsc.defaultOverwriteStr" = TRUE` Default value for the launch config entry `overwriteStr`
108107
* `"vsc.defaultSetBreakpointsInPackages" = FALSE` Default value for the launch config entry `setBreakpointsInPackages`
109108
* `"vsc.dropArrays" = TRUE`: Whether to skip dimensions of size one when showing arrays in the variables window
110109
* `"vsc.evaluateActiveBindings" = FALSE`: Whether to evaluate active bindings and show the value in the variables view

readme.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ For many variables it is also possible to assign a new value to the variable or
1919
5. Set breakpoints and break on errors.
2020
6. Control the program flow using *step*, *step in*, *step out*, *continue*.
2121
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.
2323
9. The debug console allows the execution of arbitrary R code in the currently selected stack frame.
2424

2525

@@ -31,8 +31,8 @@ After installing the extension, the R package can be installed using the command
3131
If this does not work, you can find the source code and compiled binaries on the
3232
[releases site](https://github.com/ManuelHentschel/VSCode-R-Debugger/releases).
3333

34-
The provided binaries were compiled using R 4.0.2 and might be incompatible with older R versions.
35-
In these cases it is necessary to compile the package from code.
34+
The provided packages were built using R 4.0.2 and might be incompatible with older R versions.
35+
In these cases it is necessary to build the package from code.
3636

3737
If you want to install a development version, the VS Code extension can be installed from the .vsix-files found
3838
[here](https://github.com/ManuelHentschel/VSCode-R-Debugger/actions?query=workflow%3Amain).
@@ -43,6 +43,13 @@ To install the latest development version of the required R-package from GitHub,
4343
or install from the artifacts found
4444
[here](https://github.com/ManuelHentschel/vscDebugger/actions).
4545

46+
**Note on the package version:**
47+
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+
4653
## Using the Debugger
4754
* Install this extension in VS Code.
4855
* Install the package [**vscDebugger**](https://github.com/ManuelHentschel/vscDebugger) in R.

0 commit comments

Comments
 (0)