Debug

The same solution for LSP is exist for debugging, its called DAP, Debug Adapater Protocol.
To integrate it you need to install nvim-dap.

As any good nvim plugin nvim-dap is a framework and there is plugins that extends it.

Extensions: