-
Notifications
You must be signed in to change notification settings - Fork 36.9k
Description
I tried a whole day to get remote debugging with break points on my VM, but I didn't succeed. I have read all old issues, blog posts and SO. But I still cannot figure out what I've done wrong?
I have a VM running locally on my Mac at host app.local. Inside the VM I have a folder /home/myusername/app, I have a TS project. Here is my configurations :
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"noImplicitAny": true,
"outDir": "Build",
"rootDir": ".",
"experimentalDecorators": true,
"jsx": "react",
"reactNamespace": "Element",
"removeComments": true,
"forceConsistentCasingInFileNames": true,
"strictNullChecks": true,
"noEmitOnError": true,
"noImplicitThis": true,
"inlineSourceMap": true,
"inlineSources": true
},
"exclude": [
"node_modules",
"vendor"
]
}And here is my launch.json:
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"type": "node",
"request": "attach",
"address": "app.local",
"port": 5858,
"sourceMaps": true,
"localRoot": "${workspaceRoot}",
"remoteRoot": "/home/myusername/app",
"restart": true
}
]
}
I can see the generated files have inlined source map and inlined sources(I have also tried with non-inlined mapping as well). I start the server node-dev --debug Build/Start.js. After that I attach to the process and succeeds. But the problem comes when I try to set a break point — it fails?
I have also tried many remoteRoot paths to hopefully get the breakpoints working, though failed? I don't think I have a remote idea what I've done wrong at this moment.