Skip to content
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

Breakpoints not triggered in VS Code R Debugger when using box #372

Open
spirae-nevin opened this issue Sep 10, 2024 · 2 comments
Open

Breakpoints not triggered in VS Code R Debugger when using box #372

spirae-nevin opened this issue Sep 10, 2024 · 2 comments

Comments

@spirae-nevin
Copy link

Error description

When using the box package to modularize code, breakpoints in VS Code's R Debugger do not seem to be triggered. This issue does not occur when using source() to load files. Since box isolates environments, it might be causing the debugger to lose track of the code context.

The function hello_world defined in func1.R runs correctly, but breakpoints set inside this function are not triggered when called

code to reproduce :
main.R

box::use(
  . / func1[hello_world]
)


hello_world()

func1.R

#' @export
hello_world <- function(){
  x = c(1,2,3)  # Breakpoint added here
  print("In here")
  return("Hello World")
}
R Debugger Version - v0.5.5

Don't know if this is the right place to open this issue

R version

platform       x86_64-w64-mingw32
arch           x86_64
os             mingw32
crt            ucrt
system         x86_64, mingw32
status
major          4
minor          4.1
year           2024
month          06
day            14
svn rev        86737
language       R
version.string R version 4.4.1 (2024-06-14 ucrt)
nickname       Race for Your Life

‘box’ version

'1.2.0'

@radbasa
Copy link

radbasa commented Sep 19, 2024

It might be better to report this to VSCode-R-Debugger or its dependencies.

@spirae-nevin
Copy link
Author

ok thanks for the info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants