VS Code – jump to current debugging position

The desired effect (jump to the current execution point) can be achieved by clicking on (or selecting with the keyboard) the topmost entry in the "Call Stack" view.

Luckily, a keyboard shortcut can be assigned to focusing the call stack view (workbench.debug.action.focusCallStackView). Using the macro extension from Mark's answer, a custom command can be created which will always select the topmost entry in the call stack view:

{ "command": "multiCommand.gotoDebuggerExecutionPoint", "sequence": [ "workbench.debug.action.focusCallStackView", "list.clear", "list.focusFirst", "list.select" ] }


There doesn't appear to be any go to current breakpoint command, only previous and next commands.

However, I see this "bug" might be useful: see repl evaluation causes editor to jump to current breakpoint!

So you could just focus the repl, Enter and you will jump to your current breakpoint. It does pollute your debug console with an undefined result but perhaps that is acceptable.

Or you could assign a keybinding to a macro that executes the focus command and clears the debug console in one go. Using a macro extension of your choice - I am using multi-command below - this would go into your settings:

"multiCommand.commands": [

 {
  "command": "multiCommand.gotoCurrentBreakpoint",
  // "interval": 350,
  "sequence": [

    "workbench.debug.action.focusRepl",
    "repl.action.acceptInput",

    // following command clears the debug console if you wish
    "workbench.debug.panel.action.clearReplAction"
  ]
 }
]

and some keybinding:

{
  "key": "alt+/",
  "command": "extension.multiCommand.execute",
  "args": { "command": "multiCommand.gotoCurrentBreakpoint" },
},

demo of returning to current breakpoint

How long the underlying "bug" - if it is a bug - will be there to use .....?