Skip to content

Slowly attaching to debugger on real iOS device with bundle #4226

Closed
@DimitarTachev

Description

@DimitarTachev

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.1.0
  • Cross-platform modules: 5.0.0
  • Android Runtime: 5.0.0
  • iOS Runtime: 5.0.0

To Reproduce

  1. tns create testApp --ng && cd testApp
  2. tns debug ios --bundle (or launch the VSCode task with --bundle)
  3. try to hit a breakpoint
  4. you will have to wait for ~1-3 minutes based on the device performance

Expected behavior
The breakpoint should be available just after the app is started.

Additional context
After tracing the debug protocol, it seems that the delay is caused by the "{"method":"Debugger.scriptParsed","params":{"scriptId":"1","url":"file:///app/vendor.js"..." message. The file huge and the runtime needs much time in order to parse its source maps.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions