Open serranomorante opened 8 months ago
This issue was mentioned on this discussion: https://github.com/mfussenegger/nvim-dap/discussions/1171
Looks like this might be a js-debug-adapter specific issue, see: https://github.com/microsoft/vscode-js-debug/issues/2119
Looks like this might be a js-debug-adapter specific issue, see: microsoft/vscode-js-debug#2119
Is it? I'm still able to reproduce it even after installing the vscode-js-debug commit that supposedly fixes the performance issue :cry:
Debug adapter definition and debug configuration
Notice how toggling the sidebar gets more and more slow (I'm toggling it at a fast speed but it doesn't respond)
nvim-dap-sidebar-2024-03-23_21.54.13.webm
Debug adapter version
js-debug-adapter 1.88.0 nvim nightly
Steps to Reproduce
Create and start a dummy react app (javascript)
Reproduction steps on Neovim
Copy the
repro.lua
code snippet and open nvim withnvim --clean +'so repro.lua'
and wait for nvim plugins to get automatically installed Install js-debug-adapter withMasonInstall js-debug-adapter
Open theApp.js
file onmy-app/src/App.js
Set a breakpoint on the return statement withlua require'dap'.toggle_breakpoint()
Start the debug session withlua require'dap'.continue()
Start toggling the sidebar with<leader>ds
. Repeat this keymap and you will notice the slow down.Expected Result
Toggling shouldn't get more slow the more you execute it
Actual Result
Toggling the sidebar get more slow the more you use it