This is an automated archive made by the Lemmit Bot.

The original was posted on /r/neovim by /u/lukesar02 on 2024-09-25 06:48:11+00:00.


I am trying to move my entire development workflow from vscode to neovim. Everything is going fine, except one thing… Debugging!

Beside the pain of setupping, I am having some problems with the general slowness of the chrome debugger provided by vscode-js-debug. As you can see in the video, the same code takes drastically longer to jump between breakpoints in neovim compared to vscode.

My config:

The configuration of the javascript debugger:

The code I am debugging:

import './App.css';

function testFunction(){
    var a = 0;

    for (var i=0; i<1000; i++){a++}
    console.log("hello world")

    for (var i=0; i<1000; i++){a++}
    console.log("hello world")

    for (var i=0; i<1000; i++){a++}
    console.log("hello world")

    for (var i=0; i<1000; i++){a++}
    console.log("hello world")

    for (var i=0; i<1000; i++){a++}
    console.log("hello world")
}

function App() {
  return (
    <div>
        Text
    </div>
  );
}

export default App;

I already tried some things including:

  • disabling nvim-dap-virtual-text
  • trying small and big projects
  • running nvim with admin privileges

I should also mention that I managed to get the debugger working in other languages (rust, go and python) and I didn’t have the same problem.

I am currently on windows 11… Haven’t tried reproducing this on different os yet.

Thank You in advance for the help!