Skip to content

Turn off "code browser" #6740

Closed
Closed

Description

@MarcoPortmann

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.

Activity

  1. kevinushey commented on Apr 27, 2020

    @kevinushey
    Collaborator

    See e.g. in the main menu:

    Screen Shot 2020-04-27 at 11 03 46 AM

    I suspect you want Debug -> On Error -> Message Only or similar.

  2. MarcoPortmann commented on Apr 28, 2020

    @MarcoPortmann
    Author

    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.

    image

  3. stale commented on Feb 5, 2021

    @stale

    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.

  4. added
    stale
    on Feb 5, 2021
  5. stale commented on Feb 19, 2021

    @stale

    This issue has been automatically closed due to inactivity.

  6. julou commented on Sep 29, 2021

    @julou

    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?

  7. marcus-eger commented on Oct 1, 2021

    @marcus-eger

    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.

  8. luca-scr commented on Oct 18, 2021

    @luca-scr

    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).

  9. davidseres commented on Nov 8, 2021

    @davidseres

    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... :/

  10. luca-scr commented on Nov 8, 2021

    @luca-scr
  11. bokov commented on May 8, 2022

    @bokov

    Has that daily been released yet? What version number?

  12. luca-scr commented on May 9, 2022

    @luca-scr

    Preview version 2022.02.2 Build 485 works ok.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    debuggingenhancementstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions