在调试模式下运行oclif项目测试的launch.json是什么样子的?我似乎无法获得它,所以我设置了断点并介入。
发布于 2020-10-09 02:53:01
此launch.json配置适用于我:
{
"type": "node",
"request": "launch",
"name": "Mocha Tests",
"runtimeExecutable": "${workspaceFolder}/node_modules/ts-mocha/bin/ts-mocha",
"args": [
"${workspaceFolder}/test/**/*.ts"
],
"protocol": "inspector"
},发布于 2020-12-09 10:05:46
我从这里提供的响应中获益:https://github.com/oclif/oclif/issues/135#issuecomment-403622999
我已经用typescript测试过了,program在调试方面做得很好。
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${workspaceFolder}/bin/run",
"args": [
"--name",
"Callum",
"--force",
"argument"
]
}
]
}https://stackoverflow.com/questions/64200965
复制相似问题