【发布时间】:2016-05-05 15:01:56
【问题描述】:
我真的迷路了,请帮我理解这个配置,
launch.json
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/workspace/angular/app/main.ts",
我看到“程序”属性的许多变体,但我不知道该属性的用途。
这是对我有用的唯一方法:
"program": "${workspaceRoot}/workspace/angular/node_modules/lite-server/bin/lite-server",
但它不会让我调试应用程序和浏览器打开 “http://localhost:3000”不是应用的完整地址
我看到的例子看起来像:
"program": "${workspaceRoot}/app/app.js",
"program": "${workspaceRoot}/app/app.ts",
但它永远不会运行,我收到“系统未定义”错误,main.ts 需要包含什么?
我什至看到了:
"程序": "http://localhost/blabla/index.html",
正确的方法是什么?
【问题讨论】:
标签: typescript angular visual-studio-code