Go to file
2019-05-16 17:38:34 +08:00
.vscode init 2019-05-09 09:06:50 +08:00
assets replace screenshot 2019-05-16 17:38:34 +08:00
src fix restart and stop issue 2019-05-15 16:05:20 +08:00
.gitignore init 2019-05-09 09:06:50 +08:00
build.js init 2019-05-09 09:06:50 +08:00
favicon.png init 2019-05-09 09:06:50 +08:00
package.json fix restart and stop issue 2019-05-15 16:05:20 +08:00
README.md replace screenshot 2019-05-16 17:38:34 +08:00

JavaScript 调试扩展

配置模板 (默认值)

{
    "version": "0.0.1",
    "configurations": [
        {
            "type": "topjs",
            "request": "launch",
            "name": "Launch Debugger",
            "port": 30992,
            "runtimeExecutable": "topjs3",
            "program": "${workspaceFolder}/${command:getProgramPath}"
        }
    ]
}

可定制的字段有port, runtimeExecutableprogram

  • port为任意未占用的端口号。

  • runtimeExecutable为JavaScript引擎路径(如果没有在环境变量中)

  • program会获取当前tab打开的文件的路径${workspaceFolder}表示当前的工作目录,你也可以指定脚本的绝对路径。


截图

screenshot