microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.57k stars 29.02k forks source link

Cannot debug my extension, reaches breakpoint but hangs there. #228054

Open boltex opened 1 month ago

boltex commented 1 month ago

Does this issue occur when all extensions are disabled?: Yes/No

Steps to Reproduce:

I'm developing an extension, I've noticed lately that when I set a breakpoint, it reaches the breakpoint but the js-debugger crashes.

I'm getting this message in the window output : [warning] UNRESPONSIVE extension host: 'ms-vscode.js-debug' took 100% of 5017.177ms, saved PROFILE here: 'file:///c%3A/Users/felix/AppData/Local/Temp/exthost-b274d0.cpuprofile'

Here's the profile zipped: exthost-b274d0.zip

Here's a screenshot: image

connor4312 commented 1 month ago

You can avoid the problematic code path by setting "sourceMapRenames": false, in your launch.json

boltex commented 1 month ago

@connor4312 Thank you this totally worked! 🎉

I don't know the details of those js-debug process internals, so thanks for this quick-fix!

Closing this. Hopefully someone else with this issue will find this solution! 😄

connor4312 commented 1 month ago

I'd like to keep this open for tracking the underlying bug

sadan4 commented 1 month ago

this seems to work properly in version 1.89.1 I was not able to test version 1.90.0