1
node.js(7.1.0)プロジェクトでVSコードを使用して遠隔デバッグを設定しようとしています。VSコードnodejs遠隔デバッグ
私はPM2と私のdevのアプリを起動:私は成功しDebugger attached.
{
"version": "0.2.0",
"configurations": [
{
"type": "node2",
"request": "attach",
"name": "attach",
"port": 9229,
"address": "my.app.local",
"restart": true,
"diagnosticLogging": true,
"sourceMaps": false
}
]
}
:
{
"apps": [{
"name": "my-app-dev",
"script": "app.js",
"watch": true,
"node_args": ["--inspect=9229", "--nolazy"],
"ignore_watch": ["assets/images/", ".tmp/", ".git/"],
"watch_options": {
"usePolling": true
}
}]
}
これは.vscode/launch.jsonファイルです
問題は私のブレークポイントが無視されていることです:Unverified breakpoint
デバッガはリモートマシン上のファイルパスをローカルマシン上のファイルパスにマップする必要があるため –