macosvisual-studio-codedebuggingtoolbar

Debug toolbar stuck in Visual Studio Code


I moved my debug toolbar to the upper left of the window to get it out of the way for the moment. Oops. I dragged it on top of the Mac OS window buttons and now I can't grab it to move it off! The click goes to the red button instead. I also can't press the "pause" control, because it goes to the yellow button. This is a real problem!

Anybody know a way to fix this? Is there some config file somewhere that I can edit to manually move or reset that toolbar?

enter image description here


Solution

    1. Enter fullscreen (by clicking on the green icon)
    2. Move the toolbar away from the top-left corner
    3. Exit fullscreen

    enter image description here

    Alternatively, you can remove/edit debug.actionswidgetposition in the sqlite db that stores user preferences. On macOS, by default, it's in ~/Library/Application Support/Code/User/globalStorage/state.vscdb. Here's a command line oneliner:

    sqlite3 ~/Library/Application\ Support/Code/User/globalStorage/state.vscdb \
      "REPLACE INTO ItemTable (key, value) VALUES ('debug.actionswidgetposition', '0.8');"
    

    Close all VS Code windows and restart.