View Single Post
  #2   Spotlight this post!  
Unread 20-01-2010, 14:26
SuperBK's Avatar
SuperBK SuperBK is offline
Registered User
AKA: BrianK
FRC #1225 (Amperage Robotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Henersonville, NC
Posts: 357
SuperBK is just really niceSuperBK is just really niceSuperBK is just really niceSuperBK is just really nice
Re: Running Code in Debug Mode | Power Hawks 1111

First you must undeploy any code set for startup using the First menu. Then right click on the project after you have built it and select "Execute Kernal Process" or "Debug Kernal Process". Its on page 11 of the file "GettingStartedWithC.pdf" from WPI

From the document:
To start a debug session first make sure that the PC is connected to the target. Right-click on the project name in the “Project Explorer” window and select “Debug Kernel Task…” The Debug dialog is displayed.
Figure 1: Setting the entry point on a Debug Configuration for a robot program.
Change the name of the debug target to something meaningful like “2010TargetTest” shown in the example. Select as the entry point the function FRC_UserProgram_StartupLibraryInit. On the debug options tab, select “Break on Entry” and “Automatically attach spawned Kernel Tasks”. This tells the debugger to stop at the first instruction, and to make the spawned task (your robot task) available to debug.

Brian
__________________
Brian K
Team 1225 Robotics Mentor
Reply With Quote