mfussenegger / nvim-dap

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

Terminate only works before first breakpoint on vscode-js-debug #1165

Closed foxt451 closed 7 months ago

foxt451 commented 7 months ago

Debug adapter definition and debug configuration

No response

Debug adapter version

latest - commit 1e5bf60

Steps to Reproduce

  1. Open this code:
    console.log('Hello, world!');
    await new Promise((resolve) => setTimeout(resolve, 5000));
    console.log('Hello, world!'); // <---------------------BREAKPOINT HERE
    await new Promise((resolve) => setTimeout(resolve, 5000));
    console.log('Hello, world!');
  2. Try to terminate during first await - the process exits
  3. Then restart, stop on first breakpoint, continue, and terminate on the second await - nothing happens

Expected Result

Process terminates successfully during the second await too

Actual Result

Nothing happens when terminating during the second await