How to get nvim-dap and nvim-metals working with debugging for spark #687
Unanswered
q-joshualeong
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys,
Im trying to setup my neovim to be able to debug my spark applications that are written in scala. I am wondering how to setup
nvim-metals
to be able to attach into the jvm of the spark submit process.Does metals support this or im seeing that i may need
nvim-jdtls
.Im trying to understand the nvim-dap docs for java mean when it says
Ive also installed
java-debug
but dont quite understand its docs when it saysTo use java-debug as a jdt.ls plugin, an LSP client has to launch jdt.ls with initializationOptions that contain the path to the built java-debug jar within a bundles array:
Editor extensions like vscode-java take care of this.
Once eclipse.jdt.ls launched, the client can send a Command to the server to start a debug session:
So from my understanding i think i need to accomplish these three things? Correct me if im wrong.
vscode.java.startDebugSession
to the launched jdt.ls in step 1. (This is to be done in the nvim-dap configuration for the dap.adapters.java?) The response to that command will tell me the port number to attach to.Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions