-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
App crashes after tns debug android --debug-brk and trying to debug with "Step into/over" #892
Comments
@Natalia-Hristova I can confirm that behavior, I also managed to isolate the crash to the v8 inspector 'debug' agent code - it would appear that the runtime pauses too early (in the One solution would be to force pause after the runtime has executed the aforementioned script, however at this point the breakpoint will occur in a script irrelevant to the user (see image) - the An alternative to the proposal above would be to not force pausing at all, and rely entirely on user-defined in-code breakpoints - @Plamen5kov I'd like to know what you think about the problem, and the proposed solutions. |
I'd really like us to have a |
@Plamen5kov my second proposal does not eliminate |
I understand that, but I still find |
@Plamen5kov I would like us to avoid the situation where users are a bit confused, and would come filing bug reports stating that they've started their debug session, and a yellow (usually indicative of warnings - in the case of Chrome DevTools it's how scripts in the virtual machine show up) window opens up in front of their eyes, and they may not know whether to restart the session or to continue their debugging session - to 'Play (F8)' |
You're right, but better to have the flag and break, than to have the flag and do nothing keeping in mind they don't have any |
@Plamen5kov the proposal came after I tinkered with the code some - moving the pausing logic after |
@Pip3r4o maybe we can move the inspector client callbacks after the internal module initialization which executes the require wrap logic. The problem I find here is, we'll lose the ability to debug the wrap require logic, which maybe isn't so bad when I think about it. |
@Plamen5kov that might just work! I'll test it out on Monday and let you know how it went! |
@Plamen5kov that did not fix the behavior with pausing inside the requireOverride, the inspector logic inside the runtime::init only attaches certain callbacks to the global object, events happen asynchronously however :-/ |
Tell us about the problem
Android app crashes when using
--debug-brk
and try to debug the app in Dev Chrome tools.Doesn't happen when
tne debug android
Happens only for Android.
ActivityManager: Process org.nativescript.DebugApp (pid 9660) has died: vis +99TOP
Please provide the following version numbers that your issue occurs with:
Please tell us how to recreate the issue in as much detail as possible.
tns debug android --debug-brk
The text was updated successfully, but these errors were encountered: