How to end a 'debug' mode?

user67275 picture user67275 · Apr 29, 2014 · Viewed 57.5k times · Source

In RStudio, I started a debug mode by

debug(ls)
ls()

Then I do not know how to end this mode. The prompt changed to

Browse[2]>

How can I end this debugging mode?

Answer

Matthew Lundberg picture Matthew Lundberg · Apr 29, 2014

First quit debugging the function with Q at the Browse[2]> prompt as jbaums tells you in his comment. This takes you back to the > prompt. Now turn off the debugging on ls with this command:

undebug(ls)

?debug is helpful for this sort of thing.