You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
debugonce() "loses focus" on file after printing out local variable #10664
After using debugonce(), you are generally taken to a file where you can step through the code. It seems that if you:
Begin stepping
Print out a local variable
Continue stepping
then the IDE will lose focus of that file.
The video below shows this by first stepping through the function without printing anything out (which works), and then shows the buggy situation where focus on the file is lost.
I'm seeing this issue again with R 4.3.2, but not sure if this is a regression in RStudio or a change in the latest R release that's causing trouble. Either way, I believe #14360 will resolve this issue.
@DavisVaughan Would you be able to check this in the latest dailies? It's working for me in RStudio Desktop 2024.04.0-daily+573, but I can't reproduce the problem in the first place.
Activity
DavisVaughan commentedon Apr 27, 2022
It is worth noting that this doesn't occur for packages that you have used
devtools::load_all()on.i.e. if I do
devtools::load_all()to load slider, then dodebugonce(slide_int), then it works fine.But as seen above if I do
library(slider)thendebugonce(slide_int), then it breakskevinushey commentedon Apr 27, 2022
This bug effectively makes the debugger unusable (it's a bad regression and affects debugging for any function) so it needs to be fixed in SW.
mikebessuille commentedon May 2, 2022
Consider for backporting to next PT patch as well
16 remaining items
kevinushey commentedon Mar 2, 2024
I'm seeing this issue again with R 4.3.2, but not sure if this is a regression in RStudio or a change in the latest R release that's causing trouble. Either way, I believe #14360 will resolve this issue.
ronblum commentedon Mar 13, 2024
@DavisVaughan Would you be able to check this in the latest dailies? It's working for me in RStudio Desktop 2024.04.0-daily+573, but I can't reproduce the problem in the first place.
jgutman commentedon Mar 13, 2024
FYI Davis is OOO until March 21
DavisVaughan commentedon Mar 21, 2024
It's working for me in 2024.04.0-daily+635
kevinushey commentedon Mar 21, 2024
thanks @DavisVaughan!