launch.json 与调试 javascript 有什么关系? [英] What does launch.json have to do with debugging javascript?

查看:74
本文介绍了launch.json 与调试 javascript 有什么关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在 Visual Studio 中调试我的 javascript 代码.选择开始调试"并且我收到以下错误消息launch.json 中缺少配置‘运行当前文件’";(未显示 - 错误消息在 5 秒后消失).我也被重定向到这个 launch.json 文件,但不知道我需要在这里输入什么.

Trying to debug my javascript code in Visual Studio. Selected "Start Debugging" and I get the following error message "configuration 'Run Current File' is missing in launch.json" (not pictured--error msg vanished after 5 seconds). I also got redirected to this launch.json file but have no idea what I need to type here.

我已经安装了 Node.js.我已经重新启动了我的电脑,并在调试之前编辑了我的 javascript 的语法.

I already have installed Node.js. I have restarted my computer, as well as edited the syntax of my javascript before debugging.

我对编程非常陌生,不确定可能会遗漏什么.请帮忙!

I am very very new to programming and am not sure what could be missing. Help please!

推荐答案

launch.json 用于启动应用程序进行调试.它的设置适用于映射到您的工作区源代码或定义要使用的 Chrome 端口等.

launch.json is used for to launch an app for debugging. It has settings geared for things like mapping to your workspace source code or defining the Chrome port to use.

此处

这篇关于launch.json 与调试 javascript 有什么关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆