Closed jonosace closed 4 years ago
What version of Node are you running? In https://github.com/microsoft/vscode-js-debug/issues/649 we ran into something that seemed like a probably Node issue that was fixed by updating.
Also, as a temporary fix, you can use the old debugger by setting debug.javascript.usePreview: false
I was using the latest version of node v12.18.2 but I had coworkers who weren't having the issue with older versions of node (it turns out they didn't have the latest VS code), so I tried downgrading to v12.13.0 and v12.13.1, but no dice.
I ended up installing the old version of VS Code and it started working again.
I didn't see anything in the debug console that said the server stopped or any errors or anything. Are there any debug files I can send you? Would installing the old version on top have deleted any of that? I'm in the middle of something right now, but if I get some time at the end of this sprint, I can upgrade again and reproduce.
I am having exact same issue. I updated visual studio code to latest version i.e. 1.47.2 and now, If I run a express server in debug mode in visual studio code, after few requests (not sure what count), server stops responding.
In terms of behavior on visual studio code, only thing I could see was that, when this issue happens, I am not able to create an active breakpoint in the visual studio code i.e. breakpoint would be empty, (non-red). I will just restart the debugger, everything again starts to work, only to stop after few no. of hits to the server.
There is nothing in DEBUG CONSOLE window, no errors, no information.
Can you collect a trace log when you hit this issue using these instructions?
If you're able to, add
"trace": true
to yourlaunch.json
and reproduce the issue. The location of the log file on your disk will be written to the Debug Console. Share that with us.⚠️ This log file will not contain source code, but will contain file paths. You can drop it into https://microsoft.github.io/vscode-pwa-analyzer/index.html to see what it contains. If you'd rather not share the log publicly, you can email it to connor@xbox.com
these logs are from after changing the settings to: debug.javascript.usePreview: false
2020-7-22, 17:35:53.604 UTC
[17:35:53.604 UTC] OS: darwin x64
[17:35:53.604 UTC] Adapter node: v12.8.1 x64
[17:35:53.604 UTC] vscode-chrome-debug-core: 6.8.9
[17:35:53.604 UTC] node-debug2: 1.42.5
[17:35:53.604 UTC] From client: initialize({"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"node2","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true})
[17:35:53.604 UTC] To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"exceptionBreakpointFilters":[{"label":"All Exceptions","filter":"all","default":false},{"label":"Uncaught Exceptions","filter":"uncaught","default":false}],"supportsConfigurationDoneRequest":true,"supportsSetVariable":true,"supportsConditionalBreakpoints":true,"supportsCompletionsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsRestartFrame":true,"supportsExceptionInfoRequest":true,"supportsDelayedStackTraceLoading":true,"supportsValueFormattingOptions":true,"supportsEvaluateForHovers":true,"supportsLoadedSourcesRequest":true,"supportsBreakpointLocationsRequest":true,"supportsLogPoints":true,"supportsTerminateRequest":true}}
[17:35:53.604 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"ClientRequest/initialize","data":{"Versions.DebugAdapterCore":"6.8.9","Versions.DebugAdapter":"1.42.5","successful":"true","timeTakenInMilliseconds":"1.97631","requestType":"request"}}}
[17:35:53.604 UTC] From client: launch({"type":"node2","request":"launch","name":"Debug AVA test file","runtimeExecutable":"../dev/customer-service/node_modules/.bin/ava","runtimeArgs":["debug","--verbose","--break","--serial","../dev/customer-service/node_modules/@nike/smds-secret-retrieve/lib/__tests__/smds-secrets-retrieve.test.js"],"port":9229,"trace":true,"outputCapture":"std","skipFiles":["<node_internals>/**/*.js"],"cwd":"../dev/customer-service","logFilePath":"../Library/Application Support/Code/logs/20200722T100047/exthost2/ms-vscode.node-debug/debugadapter-legacy.txt","__debuggablePatterns":["*.js","*.es6","*.jsx","*.mjs"],"__sessionId":"92ee218f-89c5-4c0f-acec-6922132ab670"})
[17:35:53.604 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"debugStarted","data":{"Versions.DebugAdapterCore":"6.8.9","Versions.DebugAdapter":"1.42.5","request":"launch","args":["type","request","name","runtimeExecutable","runtimeArgs","port","trace","outputCapture","skipFiles","cwd","logFilePath","__debuggablePatterns","__sessionId","enableSourceMapCaching","sourceMapPathOverrides","skipFileRegExps","smartStep","sourceMaps","showAsyncStacks"]}}}
[17:35:53.604 UTC] Launch: Resolving programPath: undefined
[17:35:53.604 UTC] Using --inspect-brk because a runtimeExecutable is set
[17:35:53.605 UTC] ../dev/customer-service/node_modules/.bin/ava debug --verbose --break --serial ../dev/customer-service/node_modules/@nike/smds-secret-retrieve/lib/__tests__/smds-secrets-retrieve.test.js
[17:35:53.605 UTC] To client: {"seq":0,"type":"event","event":"process","body":{"name":"","systemProcessId":29030}}
[17:35:53.605 UTC] Getting browser and debug protocol version via http://127.0.0.1:9229/json/version
[17:35:53.605 UTC] Discovering targets via http://127.0.0.1:9229/json/list
[17:35:53.605 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:53.605 UTC] There was an error connecting to http://127.0.0.1:9229/json/version : connect ECONNREFUSED 127.0.0.1:9229
[17:35:53.605 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:53.605 UTC] Discovering targets via http://127.0.0.1:9229/json
[17:35:53.605 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:53.810 UTC] Getting browser and debug protocol version via http://127.0.0.1:9229/json/version
[17:35:53.811 UTC] Discovering targets via http://127.0.0.1:9229/json/list
[17:35:53.811 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:53.811 UTC] There was an error connecting to http://127.0.0.1:9229/json/version : connect ECONNREFUSED 127.0.0.1:9229
[17:35:53.812 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:53.812 UTC] Discovering targets via http://127.0.0.1:9229/json
[17:35:53.812 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.016 UTC] Getting browser and debug protocol version via http://127.0.0.1:9229/json/version
[17:35:54.017 UTC] Discovering targets via http://127.0.0.1:9229/json/list
[17:35:54.017 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.017 UTC] There was an error connecting to http://127.0.0.1:9229/json/version : connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.017 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.017 UTC] Discovering targets via http://127.0.0.1:9229/json
[17:35:54.018 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.222 UTC] Getting browser and debug protocol version via http://127.0.0.1:9229/json/version
[17:35:54.222 UTC] Discovering targets via http://127.0.0.1:9229/json/list
[17:35:54.223 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.223 UTC] There was an error connecting to http://127.0.0.1:9229/json/version : connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.223 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.223 UTC] Discovering targets via http://127.0.0.1:9229/json
[17:35:54.224 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.298 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"stderr","output":"\n ✖ Provide the path to the test file you wish to debug\n"}}
[17:35:54.303 UTC] Target exited
[17:35:54.303 UTC] Killing process with id: 29030
[17:35:54.333 UTC] Terminated: Target exited
[17:35:54.333 UTC] Waiting for any pending steps or log messages.
[17:35:54.333 UTC] Current step and log messages complete
[17:35:54.333 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"debugStopped","data":{"Versions.DebugAdapterCore":"6.8.9","Versions.DebugAdapter":"1.42.5","reason":"Target exited"}}}
[17:35:54.333 UTC] To client: {"seq":0,"type":"event","event":"terminated"}
[17:35:54.333 UTC] Target closed
[17:35:54.333 UTC] Terminated: Target closed
[17:35:54.336 UTC] From client: disconnect({"restart":false})
[17:35:54.336 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"FullSessionStatistics/SourceMaps/Overrides","data":{"Versions.DebugAdapterCore":"6.8.9","Versions.DebugAdapter":"1.42.5","aspNetClientAppFallbackCount":0}}}
[17:35:54.336 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"report-start-up-timings","data":{"Versions.DebugAdapterCore":"6.8.9","Versions.DebugAdapter":"1.42.5","RequestedContentWasDetected":"false","Steps":"[\"BeforeFirstStep\",\"ClientRequest/initialize\",\"ClientRequest/launch\",\"Attach\",\"Attach.RequestDebuggerTargetsInformation\",\"Attach.RequestDebuggerTargetsInformation\",\"Attach.RequestDebuggerTargetsInformation\",\"Attach.RequestDebuggerTargetsInformation\"]","All":"760.234676","BeforeFirstStep":"[7.167463]","WaitingAfter.ClientRequest/initialize":"[9.092327]","ClientRequest/initialize":"[4.101127]","ClientRequest/launch":"[7.106374]","Attach":"[4.319963]","Attach.RequestDebuggerTargetsInformation":"[211.787988,206.037919,205.700715,113.77358]","RequestedContentWasNotDetectedReason":"shutdown"}}}
[17:35:54.337 UTC] Terminated: Got disconnect request
[17:35:54.337 UTC] To client: {"seq":0,"type":"response","request_seq":3,"command":"disconnect","success":true}
[17:35:54.337 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"ClientRequest/disconnect","data":{"Versions.DebugAdapterCore":"6.8.9","Versions.DebugAdapter":"1.42.5","successful":"true","timeTakenInMilliseconds":"1.146747","requestType":"request"}}}
[17:35:54.428 UTC] Getting browser and debug protocol version via http://127.0.0.1:9229/json/version
[17:35:54.428 UTC] Discovering targets via http://127.0.0.1:9229/json/list
[17:35:54.429 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.429 UTC] There was an error connecting to http://127.0.0.1:9229/json/version : connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.429 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
[17:35:54.429 UTC] Discovering targets via http://127.0.0.1:9229/json
[17:35:54.429 UTC] HTTP GET failed: Error: connect ECONNREFUSED 127.0.0.1:9229
I've been getting the same issue with VSCode 1.47.2. It doesn't appear to be related to what version of node either. I tried node versions v10.17.0, v12.17.0, v13.1.0 and v14.3.0 and Code will not attach to nodes' open debugger for some reason. Using the debug.javascript.usePreview: false
work around supplied above the debugger started working again properly.
For those that may want a bit more explicit instructions:
@fritogotlayed can you collect a trace log using the instructions posted above?
@tylerlindell your issue is unrelated, it looks like you didn't set up ava correctly to listen for the debugger. The trace logs I'm interested in for any issues are those of the new debugger, we aren't making changes to the old one at this point 🙂
@connor4312 I made sure to enable usePreview
before taking this. Do you need another trace w/o usePreview
checked?
{"timestamp":1595466207118,"tag":"runtime.welcome","level":1,"message":"js-debug v1.47.5 started","metadata":{"os":"linux x64","nodeVersion":"v12.8.1","adapterVersion":"1.47.5"}}
{"tag":"dap.receive","timestamp":1595466207106,"metadata":{"connectionId":16,"message":{"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"pwa-node","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true},"type":"request","seq":1}},"level":0}
{"tag":"dap.send","timestamp":1595466207107,"metadata":{"connectionId":16,"message":{"seq":1,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsConfigurationDoneRequest":true,"supportsFunctionBreakpoints":false,"supportsConditionalBreakpoints":true,"supportsHitConditionalBreakpoints":true,"supportsEvaluateForHovers":true,"exceptionBreakpointFilters":[{"filter":"caught","label":"Caught Exceptions","default":false},{"filter":"uncaught","label":"Uncaught Exceptions","default":false}],"supportsStepBack":false,"supportsSetVariable":true,"supportsRestartFrame":true,"supportsGotoTargetsRequest":false,"supportsStepInTargetsRequest":false,"supportsCompletionsRequest":true,"supportsModulesRequest":false,"additionalModuleColumns":[],"supportedChecksumAlgorithms":[],"supportsRestartRequest":true,"supportsExceptionOptions":false,"supportsValueFormattingOptions":true,"supportsExceptionInfoRequest":true,"supportTerminateDebuggee":false,"supportsDelayedStackTraceLoading":true,"supportsLoadedSourcesRequest":true,"supportsLogPoints":true,"supportsTerminateThreadsRequest":false,"supportsSetExpression":false,"supportsTerminateRequest":false,"completionTriggerCharacters":[".","[","\"","'"],"supportsBreakpointLocationsRequest":true,"supportsClipboardContext":true}}},"level":0}
{"tag":"dap.send","timestamp":1595466207107,"metadata":{"connectionId":16,"message":{"seq":2,"type":"event","event":"initialized","body":{}}},"level":0}
{"tag":"dap.receive","timestamp":1595466207112,"metadata":{"connectionId":16,"message":{"command":"launch","arguments":{"type":"pwa-node","request":"launch","name":"Launch Server","args":["--trace-warnings","--nolazy","--inspect-brk=9229","/home/malline/git-source/mdsCloudServerlessFunctions/bin/server"],"env":{"NODE_ENV":"local","MDS_FN_RUNTIMES":"node","MDS_FN_MONGO_URL":"mongodb://192.168.5.90:27017","MDS_FN_MONGO_DB_NAME":"mdsCloudServerlessFunctions","MDS_FN_FNPROJECT_URL":"http://192.168.5.90:8080","MDS_FN_QS_URL":"http://192.168.5.90:8081","MDS_FN_FS_URL":"http://192.168.5.90:8083","MDS_FN_NS_URL":"http://192.168.5.90:8085","MDS_FN_NOTIFICATION_TOPIC":"mdsCloudServerlessFunctions-FnProject","MDS_FN_WORK_QUEUE":"mdsCloudServerlessFunctions-FnProjectWork","MDS_FN_WORK_CONTAINER":"mdsCloudServerlessFunctionsWork"},"port":9229,"trace":true,"outputCapture":"std","cwd":"/home/malline/git-source/mdsCloudServerlessFunctions","logFilePath":"/home/malline/.config/Code/logs/20200722T170539/exthost1/ms-vscode.node-debug/debugadapter-legacy.txt","__debuggablePatterns":["*.js","*.js","*.es6","*.jsx","*.mjs"],"__workspaceFolder":"/home/malline/git-source/mdsCloudServerlessFunctions","__sessionId":"b9d2ada2-5eb5-49c9-9a89-fb054d881f11"},"type":"request","seq":2}},"level":0}
{"tag":"dap.send","timestamp":1595466207114,"metadata":{"connectionId":16,"message":{"seq":3,"type":"event","event":"output","body":{"category":"telemetry","output":"js-debug/launch","data":{"type":"pwa-node","request":"launch","os":"linux x64","nodeVersion":"v12.8.1","adapterVersion":"1.47.5","parameters":"{\"type\":\"pwa-node\",\"name\":\"<string>\",\"request\":\"launch\",\"trace\":true,\"outputCapture\":\"<string>\",\"timeout\":10000,\"showAsyncStacks\":true,\"skipFiles\":[],\"smartStep\":true,\"sourceMaps\":true,\"pauseForSourceMap\":false,\"resolveSourceMapLocations\":[\"<string>\",\"<string>\"],\"rootPath\":\"<string>\",\"outFiles\":[\"<string>\",\"<string>\"],\"sourceMapPathOverrides\":{\"webpack://?:*/*\":\"<string>\",\"webpack:///./~/*\":\"<string>\",\"meteor://💻app/*\":\"<string>\"},\"__workspaceFolder\":\"<string>\",\"__autoExpandGetters\":false,\"cwd\":\"<string>\",\"env\":{\"NODE_ENV\":\"<string>\",\"MDS_FN_RUNTIMES\":\"<string>\",\"MDS_FN_MONGO_URL\":\"<string>\",\"MDS_FN_MONGO_DB_NAME\":\"<string>\",\"MDS_FN_FNPROJECT_URL\":\"<string>\",\"MDS_FN_QS_URL\":\"<string>\",\"MDS_FN_FS_URL\":\"<string>\",\"MDS_FN_NS_URL\":\"<string>\",\"MDS_FN_NOTIFICATION_TOPIC\":\"<string>\",\"MDS_FN_WORK_QUEUE\":\"<string>\",\"MDS_FN_WORK_CONTAINER\":\"<string>\"},\"envFile\":null,\"localRoot\":null,\"remoteRoot\":null,\"autoAttachChildProcesses\":true,\"runtimeSourcemapPausePatterns\":[],\"program\":\"\",\"stopOnEntry\":false,\"console\":\"internalConsole\",\"restart\":false,\"args\":[\"<string>\",\"<string>\",\"<string>\",\"<string>\"],\"runtimeExecutable\":\"node\",\"runtimeVersion\":\"default\",\"runtimeArgs\":[],\"profileStartup\":false,\"port\":9229,\"logFilePath\":\"<string>\",\"__debuggablePatterns\":[\"<string>\",\"<string>\",\"<string>\",\"<string>\",\"<string>\"],\"__sessionId\":\"<string>\"}"}}}},"level":0}
{"tag":"dap.send","timestamp":1595466207115,"metadata":{"connectionId":16,"message":{"seq":4,"type":"event","event":"output","body":{"category":"console","output":"Verbose logs are written to:\n/tmp/vscode-debugadapter-0.json.gz\n"}}},"level":0}
{"tag":"runtime.launch","timestamp":1595466207131,"message":"Using binary at","metadata":{"location":"/home/malline/.nvm/versions/node/v14.3.0/bin/node","executable":"node"},"level":1}
{"tag":"dap.receive","timestamp":1595466207144,"metadata":{"connectionId":16,"message":{"command":"setExceptionBreakpoints","arguments":{"filters":[]},"type":"request","seq":3}},"level":0}
{"tag":"dap.send","timestamp":1595466207144,"metadata":{"connectionId":16,"message":{"seq":5,"type":"response","request_seq":3,"command":"setExceptionBreakpoints","success":true,"body":{}}},"level":0}
{"tag":"runtime.launch","timestamp":1595466207145,"message":"Discovered version","metadata":{"version":"v14.3.0"},"level":1}
{"tag":"dap.send","timestamp":1595466207159,"metadata":{"connectionId":16,"message":{"seq":6,"type":"event","event":"output","body":{"category":"console","output":"/home/malline/.nvm/versions/node/v14.3.0/bin/node --trace-warnings --nolazy --inspect-brk=9229 /home/malline/git-source/mdsCloudServerlessFunctions/bin/server"}}},"level":0}
{"tag":"runtime.launch","timestamp":1595466207174,"message":"Launched successfully","metadata":{"name":"v"},"level":1}
{"tag":"dap.send","timestamp":1595466207174,"metadata":{"connectionId":16,"message":{"seq":7,"type":"response","request_seq":2,"command":"launch","success":true,"body":{}}},"level":0}
{"tag":"dap.receive","timestamp":1595466207175,"metadata":{"connectionId":16,"message":{"command":"configurationDone","type":"request","seq":4}},"level":0}
{"tag":"dap.send","timestamp":1595466207175,"metadata":{"connectionId":16,"message":{"seq":8,"type":"response","request_seq":4,"command":"configurationDone","success":true,"body":{}}},"level":0}
{"tag":"dap.send","timestamp":1595466207180,"metadata":{"connectionId":16,"message":{"seq":9,"type":"event","event":"output","body":{"category":"stderr","output":"Debugger listening on ws://127.0.0.1:9229/f71a3f26-9f4a-4516-8e5e-c9ec0457e4dc\nFor help, see: https://nodejs.org/en/docs/inspector\n"}}},"level":0}
{"tag":"dap.receive","timestamp":1595466207233,"metadata":{"connectionId":16,"message":{"command":"loadedSources","type":"request","seq":5}},"level":0}
{"tag":"dap.send","timestamp":1595466207233,"metadata":{"connectionId":16,"message":{"seq":10,"type":"response","request_seq":5,"command":"loadedSources","success":true,"body":{"sources":[]}}},"level":0}
{"tag":"dap.receive","timestamp":1595466207234,"metadata":{"connectionId":16,"message":{"command":"threads","type":"request","seq":6}},"level":0}
{"tag":"dap.send","timestamp":1595466207234,"metadata":{"connectionId":16,"message":{"seq":11,"type":"response","request_seq":6,"command":"threads","success":true,"body":{"threads":[]}}},"level":0}
{"tag":"dap.send","timestamp":1595466212107,"metadata":{"connectionId":16,"message":{"seq":12,"type":"event","event":"output","body":{"category":"telemetry","output":"js-debug/dap/operation","data":{"errors":[],"initialize":{"operation":"initialize","totalTime":0.3,"max":0.3,"avg":0.3,"stddev":null,"count":1,"failed":0},"!initialize.errors":[],"setExceptionBreakpoints":{"operation":"setExceptionBreakpoints","totalTime":0.3,"max":0.3,"avg":0.3,"stddev":null,"count":1,"failed":0},"!setExceptionBreakpoints.errors":[],"launch":{"operation":"launch","totalTime":62.3,"max":62.3,"avg":62.3,"stddev":null,"count":1,"failed":0},"!launch.errors":[],"configurationDone":{"operation":"configurationDone","totalTime":0.3,"max":0.3,"avg":0.3,"stddev":null,"count":1,"failed":0},"!configurationDone.errors":[],"loadedSources":{"operation":"loadedSources","totalTime":0.3,"max":0.3,"avg":0.3,"stddev":null,"count":1,"failed":0},"!loadedSources.errors":[],"threads":{"operation":"threads","totalTime":0.2,"max":0.2,"avg":0.2,"stddev":null,"count":1,"failed":0},"!threads.errors":[]}}}},"level":0}
{"tag":"dap.receive","timestamp":1595466233026,"metadata":{"connectionId":16,"message":{"command":"disconnect","arguments":{"restart":false},"type":"request","seq":7}},"level":0}
{"tag":"dap.send","timestamp":1595466233048,"metadata":{"connectionId":16,"message":{"seq":13,"type":"event","event":"output","body":{"category":"stderr","output":"Process exited with code null\r\n"}}},"level":0}
{"tag":"dap.send","timestamp":1595466233049,"metadata":{"connectionId":16,"message":{"seq":14,"type":"event","event":"terminated","body":{}}},"level":0}
{"tag":"dap.send","timestamp":1595466233049,"metadata":{"connectionId":16,"message":{"seq":15,"type":"response","request_seq":7,"command":"disconnect","success":true,"body":{}}},"level":0}
@fritogotlayed you should be able to fix your issue by just removing the --inspect-brk
from your args
. We do this automatically if we see that flag in the runtimeArgs (by far the most common place where people put it) but not in the generic args
.
@connor4312 Thanks for the update! After re-enabling the debug preview I tried removing the --inspect-brk
from my args
block in the launch config and all appears well. I even updated the port
on my config to 9339 just to check if the debugger attaches to non-default ports and that appears to have connected as well. I just wanted to include that in the event someone else uses that feature. :-)
@connor4312 this setup works for ava in VSC 1.46.1 but stops working in 1.47.2. I tested on 1.46.1 and it ran fine, upgraded to 1.47.2 and the tests stopped working. I rolled back to 1.46.1 and they started working again. I can see how it would see like my configuration for ava might seem incorrect from my logs but it doesn't seem that way after testing between these two versions of VSC. Maybe something changed in VSC which invalidates the way ava launch config should be set up?
I too have been experiencing the inability to debug since updating. When I try to start an express server in node the debugger fails to attach and the server ends with a "press key to continue" message When I try to debug a JavaScript SPA none of the breakpoints are hit unless I first code a debugger statement
"debug.javascript.usePreview": false, makes it work as expected
Code version 1.47.2 Node version 12.18.2
@AnthonyElcocks please collect a trace log using the instructions above https://github.com/microsoft/vscode/issues/103048#issuecomment-662538087
@tylerlindell I tried going through the ava docs to try to hit whatever you were running into. I didn't test with the old debugger, but these updates to their recommended configuration make it work with the new debugger: https://github.com/avajs/ava/pull/2547/files
"type": "node",
"request": "launch",
"name": "Debug",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "debug"],
"console": "externalTerminal",
"port": 9231,
"restart": true,
"trace": true
@AnthonyElcocks thanks, you're hitting https://github.com/microsoft/vscode-js-debug/issues/645#issuecomment-662579968
I can't Remove the "console": "integratedTerminal" from my launch.json (see post above) so removed the console declaration all together? That shows in an integrated terminal - not ideal but it started
That's right. You can also opt out of the new debugger, but we recommend avoiding that if you can -- one day the opt-out option will go away, and we don't want to leave anyone stranded if things don't work when that happens.
It's the same issue for both the integrated and external terminal -- deals with the way we track those processes (by PID) whereas in the debug console we have a handle to the process itself.
sorry - edited after your response ... I removed the line and it starts in the integrated terminal. Not ideal but it starts
could this also be why breaks are not hit when starting the app in chrome...
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:4010/App",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"webpack:///./src/*": "${webRoot}/src/*"
}
},
no console option in that
no -- please collect a trace log for that as well if you're hitting issues :)
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome",
"url": "http://localhost:4010/App",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"webpack:///./src/*": "${webRoot}/src/*"
},
"trace": true
},
debug.javascript.usePreview: true
Breakpoints are not hit vscode-debugadapter-0.json.gz
same as above but with debug.javascript.usePreview: false
breakpoint is hit but no trace file present
with usePreview:true and a debugger statement immediately before the breakpoint... debugger is hit but when continue (F5) is pressed breakpoint is not
Thanks for the logs. It looks like everything checks out in what you sent -- you set a breakpoint at L66 in HapPluginCompliance.js
, and we're successfully able to source map that back to a location that matches that URL. I'm not seeing a debugger;
statement being hit, though. Could you place a debugger statement both before and after the line you expect to hit, and collect a trace log with those? That should allow me to narrow down what/where's it's off.
I placed debugger before and after one line of code which had a break. Pressed F5 once first debugger was hit and processing went to next debugger statement, missing the breakpoint
Okay, thank you.
I'm not really sure what's going on here.
A few things:
debugger;
statements in your compiled code?"debug.javascript.usePreview": false
can you share the trace log from that? I'm curious what it's doing differently hereYeah, I'm going a little nuts here trying to crunch out something. Breakpoints aren't hit anymore. I took a project that hasn't had the launch.json
touched in 6 months and it's not working either:
https://github.com/clshortfuse/materialdesignweb/blob/master/.vscode/launch.json
I used to be able to press F5 and it would start debugging (if I add a breakpoint). If I disable the new preview debugger then Chrome throws up ECONNRESET
which is even worse since it can't even open the page anymore. Does anybody know what version I can downgrade to get this working again?
Edit: Went as far back as 1.44 (March) and it's not working. I think Chrome Debugger is broken.
@clshortfuse thanks for the repo, I was able to clone the project and set breakpoints in core/document/index.js
Are there specific places breakpoints don't work?
It is also helpful if you collect a log file using the instructions above: https://github.com/microsoft/vscode/issues/103048#issuecomment-662538087
@connor4312 It worked with just F5? I downgraded to v1.44.2 VSCode and Chrome Debugger to 4.12.0 which was a couple months ago too and breakpoints aren't hitting (well it's not even opening the page). I'm on Chrome v84.0.4147.105.
It's either a Chrome thing or a VSCode profile thing.
2020-7-30, 04:17:02.898 UTC
[04:17:02.899 UTC] OS: win32 x64
[04:17:02.899 UTC] Adapter node: v12.8.1 x64
[04:17:02.899 UTC] vscode-chrome-debug-core: 6.8.0
[04:17:02.899 UTC] debugger-for-chrome: 4.12.0
[04:17:02.899 UTC] From client: initialize({"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"chrome","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true})
[04:17:02.899 UTC] To client: {"seq":0,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"exceptionBreakpointFilters":[{"label":"All Exceptions","filter":"all","default":false},{"label":"Uncaught Exceptions","filter":"uncaught","default":false}],"supportsConfigurationDoneRequest":true,"supportsSetVariable":true,"supportsConditionalBreakpoints":true,"supportsCompletionsRequest":true,"supportsHitConditionalBreakpoints":true,"supportsRestartFrame":true,"supportsExceptionInfoRequest":true,"supportsDelayedStackTraceLoading":true,"supportsValueFormattingOptions":true,"supportsEvaluateForHovers":true,"supportsLoadedSourcesRequest":true,"supportsBreakpointLocationsRequest":true,"supportsRestartRequest":true,"supportsSetExpression":true,"supportsLogPoints":true}}
[04:17:02.899 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"ClientRequest/initialize","data":{"Versions.DebugAdapterCore":"6.8.0","Versions.DebugAdapter":"4.12.0","successful":"true","timeTakenInMilliseconds":"7.699201","requestType":"request"}}}
[04:17:02.899 UTC] From client: launch({"name":"Chrome Docs Debug","type":"chrome","request":"launch","preLaunchTask":"npm: start:docs","url":"http://localhost:8080/","webRoot":"/__vscode-remote-uri__/home/carlos/projects/materialdesignweb/docs","sourceMapPathOverrides":{"webpack:///*":"${webRoot}/*"},"trace":true,"remoteAuthority":"wsl+ubuntu-20.04","__sessionId":"afbb342b-8f56-48a0-ad54-326f76e8cbeb"})
[04:17:02.899 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"debugStarted","data":{"Versions.DebugAdapterCore":"6.8.0","Versions.DebugAdapter":"4.12.0","request":"launch","args":["name","type","request","preLaunchTask","url","webRoot","sourceMapPathOverrides","trace","remoteAuthority","__sessionId","breakOnLoadStrategy","pathMapping","sourceMaps","skipFileRegExps","targetFilter","smartStep","showAsyncStacks"]}}}
[04:17:02.899 UTC] Getting browser and debug protocol version via http://127.0.0.1:9222/json/version
[04:17:02.899 UTC] Discovering targets via http://127.0.0.1:9222/json/list
[04:17:02.994 UTC] [chromeSpawnHelper] spawn('C:\Program Files (x86)\Google\Chrome\Application\chrome.exe', ["--remote-debugging-port=9222","--no-first-run","--no-default-browser-check","--user-data-dir=C:\\Users\\clsho\\AppData\\Local\\Temp\\vscode-chrome-debug-userdatadir_9222","about:blank"])
[04:17:03.001 UTC] got chrome PID: 13444
[04:17:04.918 UTC] HTTP GET failed: Error: read ECONNRESET
[04:17:04.918 UTC] Discovering targets via http://127.0.0.1:9222/json
[04:17:04.919 UTC] HTTP GET failed: Error: read ECONNRESET
[04:17:04.919 UTC] There was an error connecting to http://127.0.0.1:9222/json/version : read ECONNRESET
[04:17:06.943 UTC] HTTP GET failed: Error: read ECONNRESET
[04:17:07.147 UTC] Getting browser and debug protocol version via http://127.0.0.1:9222/json/version
[04:17:07.148 UTC] Discovering targets via http://127.0.0.1:9222/json/list
[04:17:09.164 UTC] HTTP GET failed: Error: read ECONNRESET
[04:17:09.164 UTC] Discovering targets via http://127.0.0.1:9222/json
[04:17:09.165 UTC] HTTP GET failed: Error: read ECONNRESET
[04:17:09.166 UTC] There was an error connecting to http://127.0.0.1:9222/json/version : read ECONNRESET
[04:17:11.190 UTC] HTTP GET failed: Error: read ECONNRESET
[04:17:11.393 UTC] Getting browser and debug protocol version via http://127.0.0.1:9222/json/version
[04:17:11.394 UTC] Discovering targets via http://127.0.0.1:9222/json/list
[04:17:13.424 UTC] HTTP GET failed: Error: read ECONNRESET
[04:17:13.425 UTC] There was an error connecting to http://127.0.0.1:9222/json/version : read ECONNRESET
[04:17:13.425 UTC] HTTP GET failed: Error: read ECONNRESET
[04:17:13.425 UTC] Discovering targets via http://127.0.0.1:9222/json
[04:17:15.482 UTC] HTTP GET failed: Error: read ECONNRESET
[04:17:15.484 UTC] To client: {"seq":0,"type":"event","event":"output","body":{"category":"telemetry","output":"ClientRequest/launch","data":{"Versions.DebugAdapterCore":"6.8.0","Versions.DebugAdapter":"4.12.0","successful":"false","exceptionType":"firstChance","exceptionMessage":"Cannot connect to runtime process, timeout after {_timeout} ms - (reason: {_error}).","exceptionName":"Error","exceptionStack":"Error: Cannot connect to runtime process, timeout after {_timeout} ms - (reason: {_error}).\n at Object.runtimeConnectionTimeout (errors.js:91:12)\n at chromeConnection.js:110:49\n at processTicksAndRejections (internal/process/task_queues.js:85:5)","exceptionId":"2010","timeTakenInMilliseconds":"12613.6096","requestType":"request"}}}
[04:17:15.485 UTC] To client: {"seq":0,"type":"response","request_seq":2,"command":"launch","success":false,"message":"Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: read ECONNRESET).","body":{"error":{"id":2010,"format":"Cannot connect to runtime process, timeout after {_timeout} ms - (reason: {_error}).","variables":{"_error":"Cannot connect to the target: read ECONNRESET","_timeout":"10000"}}}}
[04:17:15.497 UTC] From client: disconnect({"restart":false})
Edit; Accessing http://localhost:8080
works just fine on the regular Chrome instance, so the server is definitely up.
Yea, I was able to F5.
I recommend trying with the new debugger (recent version and usePreview: true) and ensuring that all instances of the browser are closed so that we can start it and capture the debug session. You can reboot your computer to be extra sure, or manually specify a different userDataDir
in your launch config. I suspect you have an old session hanging around somewhere, which then causes the debugger's launch with special debug flags to no-op.
@connor4312 I installed a fresh (never installed on this PC) VSCode-win32-x64-1.48.0-insider.zip
. Installed WSL and Chrome Debugger extension. Opened the repo, and press F5 and it worked. But I forgot to add a breakpoint. I opened it again, and now it doesn't connect. I rebooted, the insider build still doesn't connect. I erased the folder and re-extracted it, deleted %APPDATA%\Code - Insiders
, and deleted %USERPROFILE%\.vscode-insider
and it doesn't connect. I changed launch.json to use: "userDataDir": "c:\\test\\1"
, and it still doesn't connect. This time the trace is in /tmp/
in WSL:
{"timestamp":1596083884980,"tag":"runtime.welcome","level":1,"message":"js-debug v1.48.0 started","metadata":{"os":"linux x64","nodeVersion":"v12.14.1","adapterVersion":"1.48.0"}}
{"tag":"dap.receive","timestamp":1596083884863,"metadata":{"connectionId":0,"message":{"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code - Insiders","adapterID":"pwa-chrome","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true},"type":"request","seq":1}},"level":0}
{"tag":"dap.send","timestamp":1596083884864,"metadata":{"connectionId":0,"message":{"seq":1,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsConfigurationDoneRequest":true,"supportsFunctionBreakpoints":false,"supportsConditionalBreakpoints":true,"supportsHitConditionalBreakpoints":true,"supportsEvaluateForHovers":true,"exceptionBreakpointFilters":[{"filter":"caught","label":"Caught Exceptions","default":false},{"filter":"uncaught","label":"Uncaught Exceptions","default":false}],"supportsStepBack":false,"supportsSetVariable":true,"supportsRestartFrame":true,"supportsGotoTargetsRequest":false,"supportsStepInTargetsRequest":false,"supportsCompletionsRequest":true,"supportsModulesRequest":false,"additionalModuleColumns":[],"supportedChecksumAlgorithms":[],"supportsRestartRequest":true,"supportsExceptionOptions":false,"supportsValueFormattingOptions":true,"supportsExceptionInfoRequest":true,"supportTerminateDebuggee":false,"supportsDelayedStackTraceLoading":true,"supportsLoadedSourcesRequest":true,"supportsLogPoints":true,"supportsTerminateThreadsRequest":false,"supportsSetExpression":false,"supportsTerminateRequest":false,"completionTriggerCharacters":[".","[","\"","'"],"supportsBreakpointLocationsRequest":true,"supportsClipboardContext":true}}},"level":0}
{"tag":"dap.send","timestamp":1596083884864,"metadata":{"connectionId":0,"message":{"seq":2,"type":"event","event":"initialized","body":{}}},"level":0}
{"tag":"dap.receive","timestamp":1596083884962,"metadata":{"connectionId":0,"message":{"command":"launch","arguments":{"name":"Chrome Docs Debug","type":"pwa-chrome","request":"launch","preLaunchTask":"npm: start:docs","url":"http://localhost:8080/","webRoot":"/__vscode-remote-uri__/home/carlos/projects/materialdesignweb/docs","sourceMapPathOverrides":{"webpack:///*":"${webRoot}/*"},"userDataDir":"c:\\test\\1","trace":true,"remoteAuthority":"wsl+Ubuntu-20.04","__workspaceFolder":"\\home\\carlos\\projects\\materialdesignweb","__sessionId":"b5e9f981-df8e-4703-b22a-6afe41336bad"},"type":"request","seq":2}},"level":0}
{"tag":"dap.send","timestamp":1596083884964,"metadata":{"connectionId":0,"message":{"seq":3,"type":"event","event":"output","body":{"category":"telemetry","output":"js-debug/launch","data":{"type":"pwa-chrome","request":"launch","os":"linux x64","nodeVersion":"v12.14.1","adapterVersion":"1.48.0","parameters":"{\"type\":\"pwa-chrome\",\"name\":\"<string>\",\"request\":\"launch\",\"trace\":true,\"outputCapture\":\"console\",\"timeout\":10000,\"timeouts\":{},\"showAsyncStacks\":true,\"skipFiles\":[],\"smartStep\":true,\"sourceMaps\":true,\"pauseForSourceMap\":true,\"resolveSourceMapLocations\":null,\"rootPath\":\"<string>\",\"outFiles\":[\"<string>\",\"<string>\"],\"sourceMapPathOverrides\":{\"webpack:///*\":\"<string>\"},\"__workspaceFolder\":\"<string>\",\"__autoExpandGetters\":false,\"address\":\"localhost\",\"port\":0,\"disableNetworkCache\":true,\"pathMapping\":{},\"url\":\"<string>\",\"restart\":false,\"urlFilter\":\"\",\"webRoot\":\"<string>\",\"server\":null,\"targetSelection\":\"automatic\",\"vueComponentPaths\":[\"<string>\",\"<string>\"],\"cwd\":null,\"file\":null,\"env\":{},\"includeDefaultArgs\":true,\"runtimeArgs\":null,\"runtimeExecutable\":\"stable\",\"userDataDir\":\"<string>\",\"browserLaunchLocation\":\"<string>\",\"profileStartup\":false,\"cleanUp\":\"wholeBrowser\",\"preLaunchTask\":\"<string>\",\"remoteAuthority\":\"<string>\",\"__sessionId\":\"<string>\"}"}}}},"level":0}
{"tag":"dap.send","timestamp":1596083884969,"metadata":{"connectionId":0,"message":{"seq":4,"type":"event","event":"output","body":{"category":"console","output":"Verbose logs are written to:\n/tmp/vscode-debugadapter-10.json.gz\n"}}},"level":0}
{"tag":"dap.send","timestamp":1596083884981,"metadata":{"connectionId":0,"message":{"seq":5,"type":"event","event":"launchBrowserInCompanion","body":{"type":"chrome","serverPort":46311,"browserArgs":["--disable-background-networking","--disable-background-timer-throttling","--disable-backgrounding-occluded-windows","--disable-breakpad","--disable-client-side-phishing-detection","--disable-default-apps","--disable-dev-shm-usage","--disable-renderer-backgrounding","--disable-sync","--metrics-recording-only","--no-first-run","--no-default-browser-check","about:blank"],"launchId":0,"params":{"type":"pwa-chrome","name":"Chrome Docs Debug","request":"launch","trace":true,"outputCapture":"console","timeout":10000,"timeouts":{},"showAsyncStacks":true,"skipFiles":[],"smartStep":true,"sourceMaps":true,"pauseForSourceMap":true,"resolveSourceMapLocations":null,"rootPath":"\\home\\carlos\\projects\\materialdesignweb","outFiles":["\\home\\carlos\\projects\\materialdesignweb/**/*.js","!**/node_modules/**"],"sourceMapPathOverrides":{"webpack:///*":"/__vscode-remote-uri__/home/carlos/projects/materialdesignweb/docs/*"},"__workspaceFolder":"\\home\\carlos\\projects\\materialdesignweb","__autoExpandGetters":false,"address":"localhost","port":0,"disableNetworkCache":true,"pathMapping":{},"url":"http://localhost:8080/","restart":false,"urlFilter":"","webRoot":"/__vscode-remote-uri__/home/carlos/projects/materialdesignweb/docs","server":null,"targetSelection":"automatic","vueComponentPaths":["\\home\\carlos\\projects\\materialdesignweb/**/*.vue","!**/node_modules/**"],"cwd":null,"file":null,"env":{},"includeDefaultArgs":true,"runtimeArgs":null,"runtimeExecutable":"stable","userDataDir":"c:\\test\\1","browserLaunchLocation":"ui","profileStartup":false,"cleanUp":"wholeBrowser","preLaunchTask":"npm: start:docs","remoteAuthority":"wsl+Ubuntu-20.04","__sessionId":"b5e9f981-df8e-4703-b22a-6afe41336bad"}}}},"level":0}
{"tag":"dap.receive","timestamp":1596083884982,"metadata":{"connectionId":0,"message":{"command":"setBreakpoints","arguments":{"source":{"name":"postrender.js","path":"/home/carlos/projects/materialdesignweb/docs/postrender.js"},"lines":[7],"breakpoints":[{"line":7}],"sourceModified":false},"type":"request","seq":3}},"level":0}
{"tag":"dap.send","timestamp":1596083884982,"metadata":{"connectionId":0,"message":{"seq":6,"type":"response","request_seq":3,"command":"setBreakpoints","success":true,"body":{"breakpoints":[{"id":1,"verified":false,"message":"Unbound breakpoint"}]}}},"level":0}
{"tag":"dap.receive","timestamp":1596083885024,"metadata":{"connectionId":0,"message":{"command":"setExceptionBreakpoints","arguments":{"filters":[]},"type":"request","seq":4}},"level":0}
{"tag":"dap.send","timestamp":1596083885025,"metadata":{"connectionId":0,"message":{"seq":7,"type":"response","request_seq":4,"command":"setExceptionBreakpoints","success":true,"body":{}}},"level":0}
{"tag":"dap.receive","timestamp":1596083885093,"metadata":{"connectionId":0,"message":{"command":"configurationDone","type":"request","seq":5}},"level":0}
{"tag":"dap.send","timestamp":1596083885093,"metadata":{"connectionId":0,"message":{"seq":8,"type":"response","request_seq":5,"command":"configurationDone","success":true,"body":{}}},"level":0}
{"tag":"dap.receive","timestamp":1596083885143,"metadata":{"connectionId":0,"message":{"command":"threads","type":"request","seq":6}},"level":0}
{"tag":"dap.send","timestamp":1596083885143,"metadata":{"connectionId":0,"message":{"seq":9,"type":"response","request_seq":6,"command":"threads","success":true,"body":{"threads":[]}}},"level":0}
{"tag":"cdp.send","timestamp":1596083885209,"metadata":{"connectionId":0,"message":{"id":1,"method":"Target.attachToBrowserTarget","params":{}}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885463,"metadata":{"connectionId":0,"message":{"method":"Target.attachedToTarget","params":{"sessionId":"5C68BA03E7166C0A76E9C54790DA7996","targetInfo":{"targetId":"96e8556e-4bce-460a-b958-31d75ff6d2a0","type":"browser","title":"","url":"","attached":true},"waitingForDebugger":false}}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885463,"metadata":{"connectionId":0,"message":{"id":1,"result":{"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}}},"level":0}
{"tag":"cdp.send","timestamp":1596083885464,"metadata":{"connectionId":0,"message":{"id":2,"method":"Target.setDiscoverTargets","params":{"discover":true},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885466,"metadata":{"connectionId":0,"message":{"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"415a18c4-26fd-42a4-8ff5-dd49096df210","type":"browser","title":"","url":"","attached":true}},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885467,"metadata":{"connectionId":0,"message":{"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"96e8556e-4bce-460a-b958-31d75ff6d2a0","type":"browser","title":"","url":"","attached":true}},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885467,"metadata":{"connectionId":0,"message":{"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"D801B8CF0372EA7D08CBBA21BE687FEB","type":"page","title":"about:blank","url":"about:blank","attached":false,"browserContextId":"2FD96F46B9119C87CBDA65122642F411"}},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885467,"metadata":{"connectionId":0,"message":{"id":3,"method":"Target.attachToTarget","params":{"targetId":"D801B8CF0372EA7D08CBBA21BE687FEB","flatten":true},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885468,"metadata":{"connectionId":0,"message":{"id":2,"result":{},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885512,"metadata":{"connectionId":0,"message":{"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"D801B8CF0372EA7D08CBBA21BE687FEB","type":"page","title":"about:blank","url":"about:blank","attached":true,"browserContextId":"2FD96F46B9119C87CBDA65122642F411"}},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885512,"metadata":{"connectionId":0,"message":{"method":"Target.attachedToTarget","params":{"sessionId":"5876744DA8F1BA6944E1B08C30556B00","targetInfo":{"targetId":"D801B8CF0372EA7D08CBBA21BE687FEB","type":"page","title":"about:blank","url":"about:blank","attached":true,"browserContextId":"2FD96F46B9119C87CBDA65122642F411"},"waitingForDebugger":false},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885512,"metadata":{"connectionId":0,"message":{"id":3,"result":{"sessionId":"5876744DA8F1BA6944E1B08C30556B00"},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885513,"metadata":{"connectionId":0,"message":{"id":4,"method":"Target.setAutoAttach","params":{"autoAttach":true,"waitForDebuggerOnStart":true,"flatten":true},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885513,"metadata":{"connectionId":0,"message":{"id":5,"method":"Network.setCacheDisabled","params":{"cacheDisabled":true},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885513,"metadata":{"connectionId":0,"message":{"id":6,"method":"Browser.getVersion","params":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885513,"metadata":{"connectionId":0,"message":{"id":7,"method":"Page.enable","params":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885513,"metadata":{"connectionId":0,"message":{"id":8,"method":"Page.getResourceTree","params":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885513,"metadata":{"connectionId":0,"message":{"id":9,"method":"ServiceWorker.enable","params":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885514,"metadata":{"connectionId":0,"message":{"id":10,"method":"ServiceWorker.setForceUpdateOnPageLoad","params":{"forceUpdateOnPageLoad":false},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885514,"metadata":{"connectionId":0,"message":{"id":11,"method":"Network.disable","params":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885515,"metadata":{"connectionId":0,"message":{"id":12,"method":"Page.navigate","params":{"url":"http://localhost:8080/"},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885565,"metadata":{"connectionId":0,"message":{"id":4,"result":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885575,"metadata":{"connectionId":0,"message":{"id":13,"method":"Runtime.enable","params":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885575,"metadata":{"connectionId":0,"message":{"id":14,"method":"Network.enable","params":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885575,"metadata":{"connectionId":0,"message":{"id":15,"method":"Debugger.enable","params":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885576,"metadata":{"connectionId":0,"message":{"id":16,"method":"Debugger.setAsyncCallStackDepth","params":{"maxDepth":32},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.send","timestamp":1596083885576,"metadata":{"connectionId":0,"message":{"id":17,"method":"Debugger.setPauseOnExceptions","params":{"state":"none"},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885576,"message":"Dequeue messages","metadata":{"message":[]},"level":0}
{"tag":"cdp.receive","timestamp":1596083885578,"metadata":{"connectionId":0,"message":{"id":6,"result":{"protocolVersion":"1.3","product":"Chrome/84.0.4147.105","revision":"@a6b12dfad6663f13a7e16e9a42a6a4975374096b","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36","jsVersion":"8.4.371.22"},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885578,"metadata":{"connectionId":0,"message":{"id":9,"result":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885578,"metadata":{"connectionId":0,"message":{"id":10,"result":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885578,"metadata":{"connectionId":0,"message":{"method":"ServiceWorker.workerRegistrationUpdated","params":{"registrations":[]},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885578,"metadata":{"connectionId":0,"message":{"method":"ServiceWorker.workerVersionUpdated","params":{"versions":[]},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885578,"metadata":{"connectionId":0,"message":{"id":5,"result":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885578,"metadata":{"connectionId":0,"message":{"id":7,"result":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885578,"metadata":{"connectionId":0,"message":{"id":8,"result":{"frameTree":{"frame":{"id":"D801B8CF0372EA7D08CBBA21BE687FEB","loaderId":"242EE4A9F68A881012838E1152142E1A","url":"about:blank","securityOrigin":"://","mimeType":"text/html"},"resources":[]}},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083885578,"metadata":{"connectionId":0,"message":{"id":11,"result":{},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"runtime.target","timestamp":1596083885579,"message":"Retrieved browser information","metadata":{"protocolVersion":"1.3","product":"Chrome/84.0.4147.105","revision":"@a6b12dfad6663f13a7e16e9a42a6a4975374096b","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36","jsVersion":"8.4.371.22"},"level":0}
{"tag":"dap.send","timestamp":1596083885579,"metadata":{"connectionId":0,"message":{"seq":10,"type":"event","event":"output","body":{"category":"telemetry","output":"js-debug/browserVersion","data":{"browser":"Chrome/84.0.4147.105","targetCRDPVersion":"1.3","targetRevision":"@a6b12dfad6663f13a7e16e9a42a6a4975374096b","targetUserAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36","targetV8":"8.4.371.22","targetVersion":"84.0.4147.105","targetProject":"Chrome","targetProduct":""}}}},"level":0}
{"tag":"dap.receive","timestamp":1596083885586,"metadata":{"connectionId":1,"message":{"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code - Insiders","adapterID":"pwa-chrome","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true},"type":"request","seq":1}},"level":0}
{"tag":"dap.send","timestamp":1596083885587,"metadata":{"connectionId":1,"message":{"seq":1,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsConfigurationDoneRequest":true,"supportsFunctionBreakpoints":false,"supportsConditionalBreakpoints":true,"supportsHitConditionalBreakpoints":true,"supportsEvaluateForHovers":true,"exceptionBreakpointFilters":[{"filter":"caught","label":"Caught Exceptions","default":false},{"filter":"uncaught","label":"Uncaught Exceptions","default":false}],"supportsStepBack":false,"supportsSetVariable":true,"supportsRestartFrame":true,"supportsGotoTargetsRequest":false,"supportsStepInTargetsRequest":false,"supportsCompletionsRequest":true,"supportsModulesRequest":false,"additionalModuleColumns":[],"supportedChecksumAlgorithms":[],"supportsRestartRequest":true,"supportsExceptionOptions":false,"supportsValueFormattingOptions":true,"supportsExceptionInfoRequest":true,"supportTerminateDebuggee":false,"supportsDelayedStackTraceLoading":true,"supportsLoadedSourcesRequest":true,"supportsLogPoints":true,"supportsTerminateThreadsRequest":false,"supportsSetExpression":false,"supportsTerminateRequest":false,"completionTriggerCharacters":[".","[","\"","'"],"supportsBreakpointLocationsRequest":true,"supportsClipboardContext":true}}},"level":0}
{"tag":"dap.send","timestamp":1596083885587,"metadata":{"connectionId":1,"message":{"seq":2,"type":"event","event":"initialized","body":{}}},"level":0}
{"tag":"dap.send","timestamp":1596083885588,"metadata":{"connectionId":1,"message":{"seq":3,"type":"event","event":"thread","body":{"reason":"started","threadId":0}}},"level":0}
{"tag":"dap.receive","timestamp":1596083885633,"metadata":{"connectionId":1,"message":{"command":"launch","arguments":{"type":"pwa-chrome","name":"about:blank","request":"launch","__pendingTargetId":"5876744DA8F1BA6944E1B08C30556B00","postRestartTask":"npm: start:docs","__sessionId":"64397a05-b41b-48ac-9bb4-b776f10f0241"},"type":"request","seq":2}},"level":0}
{"tag":"dap.receive","timestamp":1596083885682,"metadata":{"connectionId":1,"message":{"command":"setBreakpoints","arguments":{"source":{"name":"postrender.js","path":"/home/carlos/projects/materialdesignweb/docs/postrender.js"},"lines":[7],"breakpoints":[{"line":7}],"sourceModified":false},"type":"request","seq":3}},"level":0}
{"tag":"cdp.send","timestamp":1596083885683,"metadata":{"connectionId":0,"message":{"id":18,"method":"Debugger.setInstrumentationBreakpoint","params":{"instrumentation":"beforeScriptWithSourceMapExecution"},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"dap.receive","timestamp":1596083885696,"metadata":{"connectionId":1,"message":{"command":"threads","type":"request","seq":4}},"level":0}
{"tag":"dap.send","timestamp":1596083885696,"metadata":{"connectionId":1,"message":{"seq":4,"type":"response","request_seq":4,"command":"threads","success":true,"body":{"threads":[{"id":0,"name":"about:blank"}]}}},"level":0}
{"tag":"cdp.receive","timestamp":1596083886736,"metadata":{"connectionId":0,"message":{"method":"Network.requestWillBeSentExtraInfo","params":{"requestId":"D38123FD17E6A14C47CA9451C613C3DF","associatedCookies":[],"headers":{"Host":"localhost:8080","Connection":"keep-alive","Upgrade-Insecure-Requests":"1","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36","Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9","Sec-Fetch-Site":"none","Sec-Fetch-Mode":"navigate","Sec-Fetch-User":"?1","Sec-Fetch-Dest":"document","Accept-Encoding":"gzip, deflate, br","Accept-Language":"en-US,en;q=0.9"}},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"dap.send","timestamp":1596083889866,"metadata":{"connectionId":0,"message":{"seq":11,"type":"event","event":"output","body":{"category":"telemetry","output":"js-debug/dap/operation","data":{"browser":"Chrome/84.0.4147.105","errors":[],"initialize":{"operation":"initialize","totalTime":1.1,"max":1.1,"avg":1.1,"stddev":null,"count":1,"failed":0},"!initialize.errors":[],"setBreakpoints":{"operation":"setBreakpoints","totalTime":0.5,"max":0.5,"avg":0.5,"stddev":null,"count":1,"failed":0},"!setBreakpoints.errors":[],"setExceptionBreakpoints":{"operation":"setExceptionBreakpoints","totalTime":0.3,"max":0.3,"avg":0.3,"stddev":null,"count":1,"failed":0},"!setExceptionBreakpoints.errors":[],"configurationDone":{"operation":"configurationDone","totalTime":0.6,"max":0.6,"avg":0.6,"stddev":null,"count":1,"failed":0},"!configurationDone.errors":[],"threads":{"operation":"threads","totalTime":0.8,"max":0.8,"avg":0.8,"stddev":null,"count":1,"failed":0},"!threads.errors":[]}}}},"level":0}
{"tag":"dap.send","timestamp":1596083890464,"metadata":{"connectionId":0,"message":{"seq":12,"type":"event","event":"output","body":{"category":"telemetry","output":"js-debug/cdp/operation","data":{"browser":"Chrome/84.0.4147.105","errors":[],"Target.attachedToTarget":{"operation":"Target.attachedToTarget","totalTime":0.5,"max":0.4,"avg":0.2,"stddev":0.3,"count":2,"failed":0},"!Target.attachedToTarget.errors":[],"Target.targetCreated":{"operation":"Target.targetCreated","totalTime":0.3,"max":0.2,"avg":0.1,"stddev":0.1,"count":3,"failed":0},"!Target.targetCreated.errors":[],"Target.targetInfoChanged":{"operation":"Target.targetInfoChanged","totalTime":0.3,"max":0.3,"avg":0.3,"stddev":null,"count":1,"failed":0},"!Target.targetInfoChanged.errors":[],"ServiceWorker.workerRegistrationUpdated":{"operation":"ServiceWorker.workerRegistrationUpdated","totalTime":0.2,"max":0.2,"avg":0.2,"stddev":null,"count":1,"failed":0},"!ServiceWorker.workerRegistrationUpdated.errors":[],"ServiceWorker.workerVersionUpdated":{"operation":"ServiceWorker.workerVersionUpdated","totalTime":0.2,"max":0.2,"avg":0.2,"stddev":null,"count":1,"failed":0},"!ServiceWorker.workerVersionUpdated.errors":[],"Network.requestWillBeSentExtraInfo":{"operation":"Network.requestWillBeSentExtraInfo","totalTime":0.3,"max":0.3,"avg":0.3,"stddev":null,"count":1,"failed":0},"!Network.requestWillBeSentExtraInfo.errors":[]}}}},"level":0}
{"tag":"dap.send","timestamp":1596083890587,"metadata":{"connectionId":1,"message":{"seq":5,"type":"event","event":"output","body":{"category":"telemetry","output":"js-debug/dap/operation","data":{"errors":[],"initialize":{"operation":"initialize","totalTime":0.5,"max":0.5,"avg":0.5,"stddev":null,"count":1,"failed":0},"!initialize.errors":[],"threads":{"operation":"threads","totalTime":0.8,"max":0.8,"avg":0.8,"stddev":null,"count":1,"failed":0},"!threads.errors":[]}}}},"level":0}
{"tag":"dap.receive","timestamp":1596083902169,"metadata":{"connectionId":0,"message":{"command":"disconnect","arguments":{"restart":false},"type":"request","seq":7}},"level":0}
{"tag":"cdp.send","timestamp":1596083902170,"metadata":{"connectionId":0,"message":{"id":19,"method":"Browser.close","params":{},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"dap.receive","timestamp":1596083902170,"metadata":{"connectionId":1,"message":{"command":"disconnect","arguments":{"restart":false},"type":"request","seq":5}},"level":0}
{"tag":"dap.send","timestamp":1596083902170,"metadata":{"connectionId":1,"message":{"seq":6,"type":"event","event":"output","body":{"category":"telemetry","output":"js-debug/breakpointStats","data":{"set":0,"verified":0,"hit":0}}}},"level":0}
{"tag":"cdp.send","timestamp":1596083902171,"metadata":{"connectionId":0,"message":{"id":20,"method":"Target.detachFromTarget","params":{"sessionId":"5876744DA8F1BA6944E1B08C30556B00"},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"dap.send","timestamp":1596083902172,"metadata":{"connectionId":1,"message":{"seq":7,"type":"event","event":"thread","body":{"reason":"exited","threadId":0}}},"level":0}
{"tag":"dap.send","timestamp":1596083902172,"metadata":{"connectionId":1,"message":{"seq":8,"type":"response","request_seq":5,"command":"disconnect","success":true,"body":{}}},"level":0}
{"tag":"dap.send","timestamp":1596083902172,"metadata":{"connectionId":1,"message":{"seq":9,"type":"event","event":"terminated","body":{}}},"level":0}
{"tag":"runtime.launch","timestamp":1596083902172,"message":"Launched successfully","metadata":{"name":"n"},"level":1}
{"tag":"dap.send","timestamp":1596083902174,"metadata":{"connectionId":0,"message":{"seq":13,"type":"response","request_seq":2,"command":"launch","success":true,"body":{}}},"level":0}
{"tag":"cdp.receive","timestamp":1596083902180,"metadata":{"connectionId":0,"message":{"id":19,"result":{},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"dap.send","timestamp":1596083902181,"metadata":{"connectionId":0,"message":{"seq":14,"type":"event","event":"killCompanionBrowser","body":{"launchId":0}}},"level":0}
{"tag":"cdp.receive","timestamp":1596083902187,"metadata":{"connectionId":0,"message":{"method":"Inspector.detached","params":{"reason":"Render process gone."},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"internal","timestamp":1596083902187,"message":"Got message for a session disposed 0.016 seconds ago","metadata":{"sessionId":"5876744DA8F1BA6944E1B08C30556B00","disposeOn":"2020-07-30T04:38:22.171Z"},"level":2}
{"tag":"dap.receive","timestamp":1596083902273,"metadata":{"connectionId":0,"message":{"command":"loadedSources","type":"request","seq":8}},"level":0}
{"tag":"dap.send","timestamp":1596083902273,"metadata":{"connectionId":0,"message":{"seq":15,"type":"response","request_seq":8,"command":"loadedSources","success":true,"body":{"sources":[]}}},"level":0}
{"tag":"dap.receive","timestamp":1596083902273,"metadata":{"connectionId":1,"message":{"command":"loadedSources","type":"request","seq":6}},"level":0}
{"tag":"dap.send","timestamp":1596083902274,"metadata":{"connectionId":1,"message":{"seq":10,"type":"response","request_seq":6,"command":"loadedSources","success":true,"body":{"sources":[]}}},"level":0}
{"tag":"cdp.receive","timestamp":1596083902278,"metadata":{"connectionId":0,"message":{"id":12,"result":{"frameId":"D801B8CF0372EA7D08CBBA21BE687FEB","loaderId":"D38123FD17E6A14C47CA9451C613C3DF"},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"internal","timestamp":1596083902278,"message":"Got message for a session disposed 0.107 seconds ago","metadata":{"sessionId":"5876744DA8F1BA6944E1B08C30556B00","disposeOn":"2020-07-30T04:38:22.171Z"},"level":2}
{"tag":"cdp.receive","timestamp":1596083902278,"metadata":{"connectionId":0,"message":{"method":"Network.loadingFailed","params":{"requestId":"D38123FD17E6A14C47CA9451C613C3DF","timestamp":703.900014,"type":"Document","errorText":"net::ERR_ABORTED","canceled":true},"sessionId":"5876744DA8F1BA6944E1B08C30556B00"}},"level":0}
{"tag":"internal","timestamp":1596083902278,"message":"Got message for a session disposed 0.107 seconds ago","metadata":{"sessionId":"5876744DA8F1BA6944E1B08C30556B00","disposeOn":"2020-07-30T04:38:22.171Z"},"level":2}
{"tag":"cdp.receive","timestamp":1596083902278,"metadata":{"connectionId":0,"message":{"method":"Target.targetInfoChanged","params":{"targetInfo":{"targetId":"D801B8CF0372EA7D08CBBA21BE687FEB","type":"other","title":"about:blank","url":"about:blank","attached":false,"browserContextId":"2FD96F46B9119C87CBDA65122642F411"}},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083902278,"metadata":{"connectionId":0,"message":{"method":"Target.detachedFromTarget","params":{"sessionId":"5876744DA8F1BA6944E1B08C30556B00","targetId":"D801B8CF0372EA7D08CBBA21BE687FEB"},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083902278,"metadata":{"connectionId":0,"message":{"method":"Target.targetDestroyed","params":{"targetId":"D801B8CF0372EA7D08CBBA21BE687FEB"},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.receive","timestamp":1596083902278,"metadata":{"connectionId":0,"message":{"id":20,"error":{"code":-32602,"message":"No session with given id"},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"cdp.send","timestamp":1596083902278,"metadata":{"connectionId":0,"message":{"id":21,"method":"Browser.close","params":{},"sessionId":"5C68BA03E7166C0A76E9C54790DA7996"}},"level":0}
{"tag":"sourcemap.parsing","timestamp":1596083902282,"message":"findTextInFiles search found 0 files","level":1}
{"tag":"perf.function","timestamp":1596083902282,"message":"","metadata":{"method":"BreakpointsPredictor.createInitialMapping","duration":109},"level":0}
{"tag":"dap.send","timestamp":1596083902292,"metadata":{"connectionId":1,"message":{"seq":11,"type":"response","request_seq":3,"command":"setBreakpoints","success":true,"body":{"breakpoints":[{"id":1,"verified":false,"message":"Unbound breakpoint"}]}}},"level":0}
Have you tried with WSL? Because I think that's the only difference. (Not the launch.json
item called WSL though. That's for Chrome Debugger running on WSL instead of local).
AHHHHH! WSLv2 firewall issue. I can disable the new debugger preview and get it to work with WSL now. Breakpoints aren't hit with the preview on WSLv2, but I can at least work for now.
Edit: To clarify: Connection issues seem to be WSLv2 firewall related and I worked around them. New debugger doesn't hit breakpoints on WSL. Old debugger indeed still works fine now that I fixed the firewall issue.
Are you sure that js-debug (the new debugger) isn't hitting some kind of the same issue? In the log you sent it looks like we ask Chrome to navigate to localhost:8080, and it doesn't do so -- eventually replying that that network loading failed after we ask the browser to shut down.
There inability to connect to 8080 was a WSL firewall issue that was my fault. I still can't debug with the new debugger with WSL. The old one works fine. It's probably related to the way mappings are made: (eg: /__vscode-remote-uri__/
or vscode://
).
I had actually worked on fixing this before on the old JS debugger, so it looks familiar. https://github.com/microsoft/vscode-chrome-debug-core/pull/551/files
I'm guessing the new debugger doesn't play nice with WSL and source map path overrides.
The old debugger logs to C:\Users\clsho\AppData\Local\Temp\vscode-chrome-debug.txt
which works fine.
The new debugger outputted to /tmp/vscode-debugadapter-17.json.gz
on WSL and the breakpoints never hit.
Yea it looks like Chrome debug does some additional resolution for remote paths, however you should be able to do the same thing by setting up a localRoot/remoteRoot in your launch.json; that's how most people I've seen who debug remotes do it.
I used to love VS Code. Debugging just worked. It was awesome. I evangelized it with my team. Now, it is becoming an exercise in frustration. Breakpoints get reset, moved to nowhere, invisible breakpoints at the top of modules. Breakpoints not hit until at least one is set in Chrome debugger first. Debugging is just "broken" for us.
I am overloaded with work but when I get some time I will respond with the requested trace file
I'm closing this issue for housekeeping as there've been a bunch of separate threads off the main topic, and the original poster did not follow up with trace logs.
If you're in this thread and still having issues, please do two things:
Thanks again to everyone for being helpful in giving feedback and diagnostic information!
Issue Type: Bug
The last time I updated my computer, visual studio code updated as well and I started having issues debugging my code. I dug for a while and eventually with the help of my coworkers we were able to track it down to using the debugger.
What happens is we're running the server for a while and eventually it just stops responding. It looks like it's able to handle one call at a time, but when loading our UI, we send quite a few bursts and eventually the server just seems to break. The debugger doesn't exit, it just stops responding to requests. If I run it without the debugger it appears fine. I have another coworker on 1.46.X and it works fine for him, so I'm going to try reverting to see if that works. If there's more information needed, let us know!
VS Code version: Code 1.47.2 (17299e413d5590b14ab0340ea477cdd86ff13daf, 2020-07-15T18:22:06.216Z) OS version: Windows_NT x64 10.0.19041
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz (8 x 2112)| |GPU Status|2d_canvas: enabledflash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: enabled
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.84GB (3.95GB free)| |Process Argv|--folder-uri file:///c%3A/Dev/PS-O2C-CM-ContractManagement-Dev| |Screen Reader|no| |VM|0%|
Extensions (7)
Extension|Author (truncated)|Version ---|---|--- vscode-eslint|dba|2.1.8 gitlens|eam|10.2.2 prettier-vscode|esb|5.1.3 Angular-BeastCode|Mik|8.1.2 dotenv|mik|1.0.1 csharp|ms-|1.22.1 remote-wsl|ms-|0.44.4