首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
社区首页 >问答首页 >用AngularJS运行VSCode教程

用AngularJS运行VSCode教程
EN

Stack Overflow用户
提问于 2015-05-01 16:04:39
回答 1查看 4.6K关注 0票数 0

我希望在AngularJS教程中尝试使用AngularJS,比如第一步,并开始调试和构建。

我能够让它运行,但这有点麻烦,VSCode不喜欢它。

代码语言:javascript
代码运行次数:0
运行
复制
{
"version": "0.1.0",
// List of configurations. Add new configurations or edit existing ones.  
// ONLY "node" and "mono" are supported, change "type" to switch.
"configurations": [
    {
        // Name of configuration; appears in the launch configuration drop down menu.
        "name": "Launch app.js",
        // Type of configuration. Possible values: "node", "mono".
        "type": "node",
        // Workspace relative or absolute path to the program.
        "program": "app\\js\\app.js",
        // Automatically stop program after launch.
        "stopOnEntry": true,
        // Command line arguments passed to the program.
        "args": [],
        // Workspace relative or absolute path to the working directory of the program being debugged. Default is the current workspace.
        "cwd": ".",
        // Workspace relative or absolute path to the runtime executable to be used. Default is the runtime executable on the PATH.
        "runtimeExecutable": "run.bat",
        // Environment variables passed to the program.
        "env": { }
    }, 
    {
        "name": "Attach",
        "type": "node",
        // TCP/IP address. Default is "localhost".
        "address": "localhost",
        // Port to attach to.
        "port": 5858
    }
]

}

我得到一个“错误连接失败”,即使它实际上运行在一个单独的命令提示符窗口。

是否有一种方法可以让VSCode调试这样一个简单的应用程序,该应用程序只使用package.json启动如下:

代码语言:javascript
代码运行次数:0
运行
复制
"start": "http-server -a 0.0.0.0 -p 8000"

谢谢,德里克

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-05-01 17:38:08

Visual代码只支持Node和Mono调试,它不支持在浏览器中调试客户端JavaScript。

如果希望在浏览器中调试Javascript,请使用浏览器工具。如果您想在node.js中试用VSCode调试支持。从一个示例node.js或快递应用程序开始,然后按照Visual代码网站中的方向设置调试。

如果希望看到Visual代码支持调试,可以在用户语音中对其进行表决。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29990530

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档