老师 您好 打断点调试 我step into 然后再 step out 回到的是cli.js,并没有进入index.js
webstrom:
设置了preferences里的node和build

点击图中的按钮(step into)

再点击图中的按钮(step out)
回到了下图:

并没有进入到老师的index.js
我也试着点击了step over也到达不了~
vs code我也试了下:
问题一样额
配置如下:
{
// 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": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceRoot}/core/lerna/cli.js",
"args": ["ls"],
}
]
}
希望老师帮定位下问题
我自己多看几遍视频试试
37
收起
正在回答
1回答
同学你好,断点进入lerna/index是在下面这句代码中进入的,
require(".")(process.argv.slice(2))
上图中你进入的是import-local的源码了。现在可以跳过import-local的代码调试后面的代码,后面我们会对import-local进行详细的解释。

恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星