Skip to content

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

@TsvetanMilanov

Description

@TsvetanMilanov

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions