【发布时间】:2019-04-12 15:41:24
【问题描述】:
我一直在安装 Visual Studio 代码安装程序时遇到问题。我已经安装了 jdk,我想调试我的代码。
我使用了本教程。 https://code.visualstudio.com/blogs/2017/09/28/java-debug
但是,代码不会在 json.file 中自动生成。当我想调试代码并生成调试 json.file 时。它不起作用。
这是作为代码示例的 Json 文件:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Attach)",
"request": "attach",
"hostName": "localhost",
"port": 0
},
{
"type": "java",
"name": "Debug (Launch)",
"request": "launch",
"mainClass": "vscode.hallo.java"
}
]
}
我无法调试代码。我收到错误消息 convertToDto 意外类型。
【问题讨论】:
-
我已经修复了它。我不得不使用代码运行器扩展来创建调试文件。不是,通过调试器控制台。
标签: java visual-studio-2010 debugging visual-studio-code json