Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Running Code in Debug Mode | Power Hawks 1111 (http://www.chiefdelphi.com/forums/showthread.php?t=80670)

frenchie4111 20-01-2010 10:54

Running Code in Debug Mode | Power Hawks 1111
 
Hey Frenchie Here from team 1111,

We are just starting to jump into the world of C++ on the cRIO and have heard about a code debugging mode where it does not actually burn to the cRIO but saves in ram? We have looked through documents and have not found a way to do this. Help please.

Thanks

SuperBK 20-01-2010 14:26

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

byteit101 20-01-2010 17:18

Re: Running Code in Debug Mode | Power Hawks 1111
 
its Run Kernel Task and Debug Kernel task not Execute Kernal Process and Debug Kernal Process
they have a green play icon with a gear in the corner and bug icon with a gear in the corner (respectively)

I would normally use Run Kernel Task instead of Debug Kernel Task

frenchie4111 20-01-2010 19:37

Re: Running Code in Debug Mode | Power Hawks 1111
 
Ok, i have downloaded the .pdf and on the very first set up (The Debug Settings window) it says "Connection to use: " and our drop down menu is empty, although the direstions seem to assume that there is already an entry there.

Thanks guys for helping the noobs out

byteit101 20-01-2010 19:42

Re: Running Code in Debug Mode | Power Hawks 1111
 
http://first.wpi.edu/Images/CMS/Firs...artedWithC.pdf page 4-6

frenchie4111 20-01-2010 20:10

Re: Running Code in Debug Mode | Power Hawks 1111
 
Quote:

Originally Posted by byteit101 (Post 903417)

It worked byteit thanks a bunch, this si the second time you have helped us.

byteit101 20-01-2010 20:27

Re: Running Code in Debug Mode | Power Hawks 1111
 
Quote:

Originally Posted by frenchie4111 (Post 903433)
It worked byteit thanks a bunch, this si the second time you have helped us.

You're welcome. If you want to, you can add to my reputation with the little scale on the orange bar above this post


All times are GMT -5. The time now is 12:52.

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