-
|
Hi everyone! I am looking to remote debug a basic Scala Maven hello world application, but I am unable to do so. Can anyone please help me out with that? The app is a pretty simple hello world application. Below is the vscode configuration I used to attach to the jdwp agent. Am I doing anything wrong here? Can anyone please help me out with this? I am getting build target not found error. I tried using buildTarget as "example.Hello" as well and it still does not work. {
"configurations": [
{
"type": "scala",
"request": "attach",
"name": "Remote debug",
"buildTarget": "example",
"hostName": "localhost",
"port": 5005,
},
]
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
|
Beta Was this translation helpful? Give feedback.
"buildTarget": "example",you can run the doctor to see what are your modules named or take a look into .bloop directory. The names of the json files are the actual names of the modules. I had an improvement for it in https://github.com/scalameta/metals/pull/7277/files so that you wouldn't need the target, but I haven't finished the tests for it.