How to leave the R browser() mode in the console window?

I was trying to use the browser() command to debug earlier.

Right now, I kept getting the following in the console input window:

Browse[13]>

Is it possible to get out of this situation and just get back to the normal console window?


Solution 1:

The help page ?browser says that typing c and hitting enter will get you out of the browser and let the function continue to run or typing Q and hitting enter will exit the browser and the function and take you back to the top-level prompt.

Solution 2:

You will actually need to first enter f press enter and then enter Q. The order is finish and then quit. Otherwise you might not leave the browsing.