Go to Post I have a feeling this is going to be a really good year.:) - Richard Wallace [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-09-2015, 12:12
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
[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.
__________________
Reply With Quote
  #2   Spotlight this post!  
Unread 28-09-2015, 12:04
JohnMMcD JohnMMcD is offline
Registered User
AKA: John McDonnell
FTC #5873 (Dragon Terminators)
Team Role: Mentor
 
Join Date: Jul 2015
Rookie Year: 2010
Location: CT
Posts: 13
JohnMMcD is an unknown quantity at this point
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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