Mat*_*ias 6 debugging scala breakpoints visual-studio-code
我想用vscode调试我的Scala应用程序。
我的gradle运行任务看起来很简单:
task run(type: JavaExec, dependsOn: build) {
debug true
main = mainClassFile
classpath sourceSets.main.runtimeClasspath
classpath configurations.runtime
}
Run Code Online (Sandbox Code Playgroud)
启动条目:
{
"type": "java",
"name": "Debug (Attach)",
"request": "attach",
"hostName": "localhost",
"port": 5005
}
Run Code Online (Sandbox Code Playgroud)
现在,当我启动调试器时,它将等待vscode客户端。但是我无法在vscode中设置任何断点以停止调试器。现在,它在连接vscode之后一直运行到最后。
我正在使用Scala
和Scala Language Server
。
有人知道如何添加断点吗?
归档时间: |
|
查看次数: |
1415 次 |
最近记录: |