1

使用 microsoft visual studio 代码编辑器在本地调试代码时,是否有任何本地服务器,例如 Adob​​e 的括号编辑器,而不是在 launch.json 中配置 nodejs服务器

launch.json: {
     "configurations": [
         {
            "name": "Launch server on port",
            "type": "node",
            "program": "src/server/server.js",
            "args": ["--port=8080"]
        },
        {
            "name": "Attach",
            "type": "node",
            // TCP/IP address. Default is "localhost".
            "address": "localhost",
            // Port to attach to.
            "port": 5858,
            "sourceMaps": false
        }
    ]}

参考:* https://code.visualstudio.com/Docs/editor/debugging

4

0 回答 0