question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugging a package

See original GitHub issue

Hi 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:

  1. Set a breakpoint in a function
  2. Install the package with devtools::install(keep_source = TRUE)
  3. Focusing an Rscript in the editor
  4. Hitting F5 (debug console starts with message “Starting R session”)
  5. 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:closed
  • Created 3 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
pat-scommented, Nov 6, 2020

Thanks for the quick response!

I’ve followed the instructions again closely (I also did a few days ago already) and also tried setting debuggedPackages again. 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 😃

0reactions
ManuelHentschelcommented, Nov 8, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found