Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DimitarTachev opened this issue Dec 12, 2018 · 0 comments
Closed

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

DimitarTachev opened this issue Dec 12, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@DimitarTachev
Copy link
Contributor

DimitarTachev commented Dec 12, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants