首页 > 解决方案 > 从 .jar 文件夹添加主类

问题描述

我想创建一个扩展来解析语言(这是用我的语法编写的)并找到它的错误。

所以我在 Server 中创建了我的主类并将其导入到 VSCode 中。如何从客户端访问我的主类?

这是我的launch.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 (Launch) with Arguments Prompt",
            "request": "launch",
            "cwd": "${workspaceFolder}",
            "console": "internalConsole",
            "stopOnEntry": false,
            "mainClass": "",
            "args": "${command:SpecifyProgramArgs}"
        },
        {
            "type": "node",
            "request": "attach",
            "protocol": "legacy",
            "name": "Attach",
            "port": 9229
        },


    ]
}

我的主类路径--->>>/Desktop/intellijden eclipse-->VScode/vscode-languageserver-java-example/Server/app.class

但我的服务器在 .jar 中。

标签: typescriptvisual-studio-codevscode-extensions

解决方案


推荐阅读