vscode-R: Possibility to run R script with breakpoints

  • VSCode Version: Version: 1.27.2
  • VSCode-R Version: 0.6.1
  • OS Version: Ubuntu 16.04 LTS

Steps to Reproduce: None

Do you want to fix by self? (I hope your help!)

No

(If yes,) what kind of help do you want? (e.g. Which file should I fix, Survey (related documents) This is not bug report. I that possible to run R in debug mode with breakpoints? If not could you be so kind to add this feature?

(If related)setting.json

// R.exe path for windows
"r.rterm.windows": "C:\\Program Files\\R\\R-3.4.4\\bin\\x64\\R.exe",

// R path for Mac OS X
"r.rterm.mac": "/usr/local/bin/R",

// R path for Linux
"r.rterm.linux": "/usr/bin/R",

// R command line options (i.e: --vanilla)
"r.rterm.option": [],

// An optional encoding to pass to R when executing the file, i.e. 'source(FILE, encoding=ENCODING)'
"r.source.encoding": "UTF-8",

// Keeping focus when running
"r.source.focus": "editor",

Thanks for attention to my message and have a nice day.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 21 (14 by maintainers)

Most upvoted comments

I’ve been working on an R debugger recently, following the same approach as @renkun-ken described. Since this approach is quite different from the current R extension, I decided to do so in a new project. If you have the time to try the debugger, I would appreciate any feedback 😃

https://github.com/ManuelHentschel/VSCode-R-Debugger https://github.com/ManuelHentschel/vscodeRPackage

The extension doesn’t give you the full debugging capabilities built into VS Code, but you can always add a browser() call to your script and you will be R’s debug mode in the interactive terminal when you reach that point in the script.