-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vscDebugger doesn't hit breaking points #165
Comments
I'm having an issue where breakpoints inside a loaded package are being ignored. I'm using I've also tried explicitly running Is there any way from the debugger within the file, I can inspect the package functions that should have breakpoints and see whether the breakpoints have been inserted? Or any other way to debug this? |
Found one reproducible situation: MRE here: https://github.com/katrinabrock/minimal-r-package To reproduce, add breakpoints as indicated in the comments here: https://github.com/katrinabrock/minimal-r-package/blob/main/R/objects.R Then, run the debugger configured here: https://github.com/katrinabrock/minimal-r-package/blob/main/.vscode/launch.json |
I probably should have just opened this as a new issue called something like |
The problem with these R6 methods is that the lists they are in are not considered by functions like If the R6 methods are defined in a top-level script that is sourced by Are there IDEs where breakpoints in R6 methods from packages work properly? I tried getting them to work in RStudio but not very successfully. |
Indeed this kind of breakpoint doesn't work in RStudio either. Interestingly, when you try to create the breakpoint, it first makes it provisional with "Breakpoints will be activated when the package is built or reloaded." Then, when you |
Seems like this is indeed an issue with R6: r-lib/R6#236 |
Sorry for two posts within an hour, but I found one way to get an output from
I wonder if there is a way to find all the R6 objects and patch their environments in here: https://github.com/ManuelHentschel/vscDebugger/blob/master/R/breakpointsManagement.R#L64 |
Hello,
I have installed R 4.0.5. o my system with vscDebugger extension and package v0.4.7. following the guide in the documentation.
The debugger seems to work and there is no error in Debug console or in output.
The issue is that when in debug mode, I can see the variables but when I run the code it does not hit breaking points.
Breaking points are active and there is no error then I run through them.
I've haven't modified any configurations in launch.json file and tried all of them. I can see the variables in Run and debug section only when I attach to existing R process.
I've tried to install vscDebugger extension and package v0.4.6 and when I run the debugging it drops with no error in the output.
This is my first post and I don't know what information I should attach. So if you need anything else please specify and I will add it.
Thank you
The text was updated successfully, but these errors were encountered: