No Description

abbycin a9d6b517e9 add lf 4 months ago
.vscode 35f22d87a0 init 5 months ago
assets 0f767be2a9 replace screenshot 5 months ago
src a9d6b517e9 add lf 4 months ago
.gitignore 35f22d87a0 init 5 months ago
README.md 0f767be2a9 replace screenshot 5 months ago
build.js 35f22d87a0 init 5 months ago
favicon.png 35f22d87a0 init 5 months ago
package.json a9d6b517e9 add lf 4 months ago

README.md

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