【发布时间】:2020-05-03 22:06:09
【问题描述】:
我正在使用 VS Code 作为我的 IDE,并且需要多个可用于各种项目的调试器。我有一个 Extendscript,并希望 Chrome 用于其他文件。
这是我的 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": "1.0.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
},
{
"type": "extendscript-debug",
"request": "launch",
"name": "Ask for script name",
"program": "${workspaceFolder}/${command:AskForScriptName}",
"stopOnEntry": false
}
]
}
VSC 抱怨它“只有一个必须验证时匹配多个模式”。有两个架构。 VSC 还提供此功能:“'launch.json' 中缺少配置 'Launch Chrome against localhost'。”
我可以调试 Extendscript 文件 (jsx),但不能调试 JS 或 HTML/JS/CSS 文件。
我完全迷失了曾经使用 ESDK 处理 jsx 文件并在浏览器中使用 Chrome。似乎没有办法选择我需要的调试器。
我使用的是 Win10 最新的 1909 和 VSC 版本:1.44.2(用户设置) 提交:ff915844119ce9485abfe8aa9076ec76b5300ddd 日期:2020-04-16T16:36:23.138Z 电子:7.1.11 铬:78.0.3904.130 Node.js:12.8.1 V8:7.8.279.23-electron.0 操作系统:Windows_NT x64 10.0.18363
谢谢, 罗克
【问题讨论】:
标签: javascript json debugging visual-studio-code