NativeScript / android

NativeScript for Android using v8
https://docs.nativescript.org/guide/android-marshalling
Apache License 2.0
524 stars 135 forks source link

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

Open vhristov5555 opened 5 years ago

vhristov5555 commented 5 years ago
  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.
darind commented 5 years ago

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