Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FIRST Tech Challenge (http://www.chiefdelphi.com/forums/forumdisplay.php?f=146)
-   -   [FTC]: How to debug the Android platform (http://www.chiefdelphi.com/forums/showthread.php?t=138309)

mikets 27-09-2015 12:12

[FTC]: How to debug the Android platform
 
I was playing around with the Robot Controller code and have somehow introduced a run-time exception (null pointer exception). The problem is: I don't know how to debug it. If the phone were connected to the PC, I may be able to do a stack dump and find out where the null pointer exception occurred. But the phone was connected to the robot and all the screen display said was I have a null pointer exception and did not tell me where. I can't run the code when the phone is connected to the PC. How do you debug run-time errors? If I put System.out.print in the code, where does this output to? I know I can do telemetry.addData to send info to the Driver Station but it is not the friendliest way to debug because it is not as flexible as printf and I had to do a format string before calling telemetry.addData.

JohnMMcD 28-09-2015 12:04

Re: [FTC]: How to debug the Android platform
 
Check out http://ftcforum.usfirst.org/showthre...ll=1#post13991 for instructions on how to set up Android's Wireless Debug Bridge. See also http://developer.android.com/tools/h....html#wireless


All times are GMT -5. The time now is 17:14.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi