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
It seems to me that there is no way to disable RStudio from opening a new "code browser" editor window when it runs into an execution error.
When I'm debugging a script, executing exactly one line and encountering an error, I often know pretty much what went wrong. Then I want to stay in the active editor and revise the line. It is only annoying when RStudio opens the code browser for the function in question and shows me its internals. I only lose time because I have to close the code browser and switch back to the desired script.
Reacted by Tim, mnist91, joesilverstein, David Seres, ismirsehregal, Alex F. Bokov, Ph.D. and Kyle Barrett
Thanks for the advice. I should actually try out if "message only" does get me close to the desired behavior.
I would prefer to leave the debugging settings as they are, but have the option to turn off the code browser or an option that the code browser opens, but leaves the focus on the current tab/editor. This would also cover the case that I want to jump to a browser() statement in a function. Suppose, I have the function in the current tab in front of me. Then I execute the function. The code browser will be opened and I get the function read-only. I have to jump back to the last tab for small changes to the code while the function is still executed.
Reacted by David Seres, rached-97 and Alex F. Bokov, Ph.D.
I bump this issue since I constantly run into the same undesired behaviour.
Any hint how to prevent the debug tab from opening? or is it simply not possible?
Reacted by joesilverstein, Giovanni Galli, David Seres, Marco Smolla, Connor T. Jerzak, ismirsehregal, Matthew Phelps, Alex F. Bokov, Ph.D., Bert van der Veen and Kyle Barrett
I want to emphasize that this is also an issue for me - which strongly affects everyday work. The shifted focus very often leads to unintended behaviour, e.g. removal of lines of code marked for copy&paste.
Reacted by joesilverstein, Giovanni Galli, David Seres, Marco Smolla, Connor T. Jerzak, Moritz Schwarz, Matthew Phelps, Alex F. Bokov, Ph.D. and Bert van der Veen
I also think that this behaviour is unattractive. Most (if not all) of the times I know where I added browser() in the code so I would like to execute lines of code one by one instead of having a debug tab open with the current definition of the function involved.
Please add a switch to avoid opening the debug tab window (as it was in old version of RStudio).
Reacted by MarcoPortmann, Luke Zachmann, joesilverstein, Giovanni Galli, David Seres, Connor T. Jerzak, Moritz Schwarz, Matthew Phelps, Alex F. Bokov, Ph.D., Jarosław Piskorski and 3 more
This is a really cumbersome debugging behaviour. Please add a switch button or any other means to stop R Studio to switch focus to the code browser. This issue has been open for 1.5 years and there still haven't been any replies from the Team... :/
Reacted by Connor T. Jerzak, Bert van der Veen and Kyle Barrett
Activity
kevinushey commentedon Apr 27, 2020
See e.g. in the main menu:
I suspect you want Debug -> On Error -> Message Only or similar.
MarcoPortmann commentedon Apr 28, 2020
Thanks for the advice. I should actually try out if "message only" does get me close to the desired behavior.
I would prefer to leave the debugging settings as they are, but have the option to turn off the code browser or an option that the code browser opens, but leaves the focus on the current tab/editor. This would also cover the case that I want to jump to a browser() statement in a function. Suppose, I have the function in the current tab in front of me. Then I execute the function. The code browser will be opened and I get the function read-only. I have to jump back to the last tab for small changes to the code while the function is still executed.
stale commentedon Feb 5, 2021
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
stale commentedon Feb 19, 2021
This issue has been automatically closed due to inactivity.
julou commentedon Sep 29, 2021
I bump this issue since I constantly run into the same undesired behaviour.
Any hint how to prevent the debug tab from opening? or is it simply not possible?
marcus-eger commentedon Oct 1, 2021
I want to emphasize that this is also an issue for me - which strongly affects everyday work. The shifted focus very often leads to unintended behaviour, e.g. removal of lines of code marked for copy&paste.
luca-scr commentedon Oct 18, 2021
I also think that this behaviour is unattractive. Most (if not all) of the times I know where I added browser() in the code so I would like to execute lines of code one by one instead of having a debug tab open with the current definition of the function involved.
Please add a switch to avoid opening the debug tab window (as it was in old version of RStudio).
davidseres commentedon Nov 8, 2021
This is a really cumbersome debugging behaviour. Please add a switch button or any other means to stop R Studio to switch focus to the code browser. This issue has been open for 1.5 years and there still haven't been any replies from the Team... :/
luca-scr commentedon Nov 8, 2021
It seems to be fixed on the daily builds of RStudio
https://dailies.rstudio.com
bokov commentedon May 8, 2022
Has that daily been released yet? What version number?
luca-scr commentedon May 9, 2022
Preview version 2022.02.2 Build 485 works ok.