-
-
Notifications
You must be signed in to change notification settings - Fork 197
Unable to debug at all on Android #386
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
Comments
Hi @brianchirls, |
Thanks @teobugslayer. That kind of works a little. It doesn't launch Chrome, but it does pause the application and set up the debugger But once the app stops (usually because it crashes), there doesn't seem to be any way to debug it again, unless I find the node process that's listening on 8080 and kill that first. It makes for a very slow debugging process. The bigger problem is that if there is an uncaught exception in Javascript, the app dies, and the debugger disconnects. So there's no way to find out what the error was. For some code, I can just wrap everything in a try...catch, which is far from idea. But sometimes the app crashes right as it starts, and Io can't seem to catch it. Is there a way around this? Node Inspector doesn't seem to have an option to pause on uncaught exceptions. Also, not sure if this is helpful, but I'm seeing this error in the debugger console:
|
Hello @brianchirls , Thank you for feedback. |
+1 |
Closing this issue, see #661 |
Any update on this issue? I am getting same error mentioned in by getsetbro and can not debug yet! |
Please give more information about why an issue has been closed. I went looking through all the related issues about this and could not find any useful information. I still see this issue. |
Close you application, and launch it again in your phone and then refresh your dbug page http://127.0.0.1:8080/debug?port=40000 |
When I run
tns debug android --debug-brk --log trace
, the build process runs and the app is launched on the device (or emulator if no device is plugged in), and then it immediately crashes (presumably because of a bug in my code somewhere). Chrome is not launched, and there is nothing listening on port 8080.Output is here: https://gist.github.com/brianchirls/60b4fc05e225ace40f38
Possibly related to #359, but probably not the same thing, since that guy can get it working on his device and I can't.
Also, in all the commands in the debugger documentation, "android" is misspelled as "andorid."
The text was updated successfully, but these errors were encountered: