NativeScript / NativeScript/android
The run-time takes 5+ seconds to respond to Debugger.enable
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C++
- Sterne
- 563
- Forks
- 144
- Ø Merge
- 10 Std. 46 Min.
- Gemergte PRs (30 T.)
- 14
Beschreibung
Please, provide the details below:
Did you verify this is a real problem by searching Stack Overflow and the other open issues in this repo?
Yes
Tell us about the problem
The run-time takes 5+ seconds to respond to Debugger.enable
Please provide the following version numbers that your issue occurs with:
- CLI: 3.3.1
Please tell us how to recreate the issue in as much detail as possible.
This is reproducible with:
https://github.com/NativeScript/template-master-detail-ts
https://github.com/NativeScript/template-master-detail-ng
https://github.com/NativeScript/template-master-detail-kinvey
against an Android Pixel.
clone https://github.com/NativeScript/template-master-detail-ts
cd template-master-detail-ts
tns platform add android
tns debug android --start
After receiving the Debugger.enable request the run-time would trigger scriptParsed events for all sources in the project (500+ files) first and only then would respond to the Debugger.enable request.
Starting a debug session against any of the listed projects would time out as the JavaScript debugger (Microsoft implementation) in Visual Studio has a non-configurable 5 second timeout on all requests.
In {N} Sidekick the debug session would not timeout but it would still take more than 5 seconds to initialize.
Please note that after receiving a response to Debugger.enable the JavaScript debugger in Visual Studio would start sending Debugger.setBreakpointByUrl for all pre-set breakpoints (again 5s timeout) and if the run-time does not respond to a request the breakpoint would remain inactive.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduzieren Sie die Verzögerung mit den aufgeführten template-master-detail-Projekten auf einem Android Pixel mit tns debug android --start. Verfolgen Sie, wie die Laufzeit Debugger.enable, scriptParsed und Debugger.setBreakpointByUrl verarbeitet; abgeschlossen ist die Aufgabe, wenn die Initialisierung des Debuggers und die voreingestellten Breakpoints ohne die fünfsekündige Zeitüberschreitung abgeschlossen werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, javascript
- Bereich
- devtools, mobile-dev, performance
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 32/100