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:
tns create debug-test
cd debug-test
- Deploy the application and start it.
tns debug ios --start --chrome
- Open the debug url.
- 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.
tns debug ios --start --chrome
- Open the debug url.
- The application crashes on the device.
When trying to debug application with the
--startoption 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
--startit works.Steps to reproduce:
tns create debug-testcd debug-testtns debug ios --start --chrometns debug ios --start --chrome