【发布时间】:2018-05-08 14:06:01
【问题描述】:
我似乎无法在 VSCode 中让 Java 扩展(Microsoft 的扩展包)工作的工作区。它说我的 Mainclass of Test 不存在,但是在 Test 中有 mainclass,所以我认为 launch.json 中一定有问题。
launch.json:
{
"version": "0.2.0",
"configurations": [
{
"type": "java",
"name": "Debug (Launch)",
"request": "launch",
"cwd": "${workspaceFolder}",
"console": "internalConsole",
"stopOnEntry": false,
"mainClass": "Test",
"args": ""
}
]}
这是我的结构(我知道我不应该将代码直接放在工作区中,但它也不适用于文件夹...):
Test.java 文件只是基本的“Hello World!”。
【问题讨论】:
标签: java json visual-studio-code launch workspace