android
android copied to clipboard
Debug Angular App - Adding a breakpoint is taking too much time
- Create angular app
tns create testNG --ng
- Run debug
tns debug android
- Add a breakpoint in some ts file Actual: When you add a breakpoint you should wait some time around 10 seconds Expected: Adding a breakpoint should be as fast as in javascript app comment: In HMR this is causing a late response to changes in ts files.
After further investigation in looks like the slowness is caused by the GetPossibleBreakpoints method in v8. This slowness is proportional to the loaded script size on the heap.
Currently we do not have a viable solution to this. One possibility is to disable this method call but in this case the user will not be able to select between multiple possible breakpoints on the same line: