-
-
Notifications
You must be signed in to change notification settings - Fork 23
Unable to hit breakpoints #72
Comments
Hi, I just ran into the exact same issue. To me it seems that karma causes this, as it adds prefix
and restart vscode. Breakpoints should work now. This is obviously a hack, but maybe we can get a extension option for this? |
Hey @jcharlytown @bronumski , thank you very much for reporting this. I will try to look it up this weekend and fix it, I will also see how complicated is for me to expose a json for the debugger on the vscode extension ui. Btw @jcharlytown if you are working with the code and want to help by submitting a pullrequest I would be more than willing to review it :) |
@jcharlytown - thanks for the work around, I am going to give it a shot later. |
Thanks @jcharlytown, I can confirm that your work around worked for me. |
Thanks for the file location! Basically, to get it working, I had to replace configuration there with my built up actually working one from
This configuration built up according to the link at medium |
From today's build, you can add a new property to configuration called debuggerConfiguration: this will take a JSON object containing the entire configuration you would use for using VSCode Debugger for Chrome. No validation is done to these properties, it is your responsibility to use a configuration that works. Please check the documentation to find the default configuration https://github.com/Raagh/angular-karma_test-explorer/blob/master/DOCUMENTATION.md. thank you guys for making me notice this issue and giving me some motivation to go back to this project, hope that everything works better now. |
Ask the question
I have the test explorer configured. It correctly finds the tests and allows me to run them. Output is clearly displayed in the test explorer logs. However if I try and debug the tests the breakpoints are not hit and VSCode reports that there is a possible source mapping problem. It's a great tool but it would be better if I could configure this last part.
Additional context
tsconfig.spec.json
tsconfig.json
karma.conf.js
angular.json
The text was updated successfully, but these errors were encountered: