android icon indicating copy to clipboard operation
android copied to clipboard

Debug Angular App - Adding a breakpoint is taking too much time

Open vhristov5555 opened this issue 6 years ago • 1 comments

  1. Create angular app tns create testNG --ng
  2. Run debug tns debug android
  3. 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.

vhristov5555 avatar Feb 08 '19 09:02 vhristov5555

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:

image

darind avatar Feb 11 '19 09:02 darind