Debugging a package
See original GitHub issueHi Manuel,
thanks for the great work, a debugger for vscode is highly needed.
I am struggling to get it working for a package (haven’t tried normal code yet).
Currently I am executing these steps:
- Set a breakpoint in a function
- Install the package with
devtools::install(keep_source = TRUE) - Focusing an Rscript in the editor
- Hitting F5 (debug console starts with message “Starting R session”)
- Executing some lines of code including a call to a function which contains the breakpoint
However, nothing happens and I do not know why. The R calls are executed in radian.
Probably I am missing something obvious here - highly appreciated if you could provide some guidance here 😃
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (7 by maintainers)
Top Results From Across the Web
How to Debug a Package in Oracle Database - Documentation
In Database Explorer, right-click the package you want to compile, click Compile, and then select Compile Dependants for Debugging to load debugging information ......
Read more >Understanding Debugging Symbols and Using Source Link
Under the Debug menu, click on Options. First, under General, tick the option to Enable Source Link support.
Read more >Two easy ways to Debug NuGet Packages and Edit Libraries
To do this select Debug > Options, from the menu bar, then browse to Debugging > Symbols in the tree menu. Add the...
Read more >Debugging packages — conan 1.56.0 documentation
This command will trigger the build of the library locally in the developer's machine, so the binaries will point to the sources where...
Read more >Debugging SSIS Packages in SQL Server - MindMajix
This blog on How To Debug SSIS package section makes an emphasis on ways of debugging packages of SSIS in SQL Server. Read...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Thanks for the quick response!
I’ve followed the instructions again closely (I also did a few days ago already) and also tried setting
debuggedPackagesagain. Unfortunately with no luck.I am still stopping at the function definition instead of stopping at
browser()or a defined breakpoint. I also cannot get to the latter by “continuing”. I clearly must be doing something wrong.If you’re up to, feel free to write me a mail (see mail in my profile) so we could arrange a meeting to sort this out and figure out how I can help you in this project 😃
Thanks for the interesting video call @pat-s! To keep things organized I’ll open a new issue to discuss further improvements to debugging workflow & documentation for packages.