View Single Post
  #5   Spotlight this post!  
Unread 02-12-2015, 01:28 AM
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 152
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: [C++] Eclipse deploying errors (FrcUserProgram)

One of the tricky things about FRC programming is that the "no robot code" indicator is sometimes a misnomer. I would say it is highly likely that your code deployed and ran ... and crashed. I have seen this many times with my students.

What to do? RIO_LOG - is your friend.... You should have a tab at the bottom area in Eclipse which is rio_log. Select it, clear it, and then re-deploy - and watch what happens. You will likely get useful information about the crash.

What if that doesn't work? Use the DEBUGGER - Screensteps will take you through it step by step, but the basic concept is instead of "run-as -> Deploy" you'll instead use "Debug-As -> Deploy" and after a few gyrations in trying to get it running the first time (I remember there being some popup dialogs and seemingly errors the first couple times), then the gdb debugger will run your program and if you're crashing, it'll break right where the crash is occurring. It's very cool.

Good luck and let us know!

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote