mfussenegger / nvim-dap

Debug Adapter Protocol client implementation for Neovim
GNU General Public License v3.0
5.65k stars 205 forks source link

Restore stopped state if goto errors #1334

Closed mfussenegger closed 2 months ago

mfussenegger commented 2 months ago

Problem:

A debug adapter can respond to goto with an error - e.g. if attempting to jump to a location where there is no code to execute.

If that happened, selecting another goto location was no longer possible because the stopped state had been cleared.

Solution:

Restore stopped state if goto fails