Skip to content

Runtime crashes when trying to debug application with --start option #832

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
TsvetanMilanov opened this issue Dec 4, 2017 · 0 comments
Closed
Assignees
Milestone

Comments

@TsvetanMilanov
Copy link

TsvetanMilanov commented Dec 4, 2017

When trying to debug application with the --start option the first debug session is OK. If I start the debugger again without restarting the application on the device - the runtime crashes.
After some investigation I found that this call -> https://github.com/NativeScript/ios-runtime/blob/master/src/debugging/TNSDebugging.h#L77 causes the crash. If I remove the error check the debugger will not start but the third time I start debugging with --start it works.

Steps to reproduce:

  1. tns create debug-test
  2. cd debug-test
  3. Deploy the application and start it.
  4. tns debug ios --start --chrome
  5. Open the debug url.
  6. After the Chrome DevTools are loaded and the application can be debugged - stop the debug command and close the DevTools tab. Don't restart the application on the device.
  7. tns debug ios --start --chrome
  8. Open the debug url.
  9. The application crashes on the device.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants