View unanswered posts | View active topics It is currently Tue Nov 25, 2014 9:35 pm






Reply to topic  [ 8 posts ] 
Breakpoints in header files 
Author Message
Expert

Joined: Thu Sep 29, 2011 11:09 pm
Posts: 184
Location: Michigan USA
Post Breakpoints in header files
How can I set a breakpoint in a header file? If I set one (big red dot) the program just flies right past without stopping.

_________________
Matt


Wed Mar 21, 2012 9:50 pm
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3289
Location: Rotterdam, The Netherlands
Post Re: Breakpoints in header files
Check if the #pragma SystemInclude is set (or something to that effect, I don't have ROBOTC in front of me now)

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Thu Mar 22, 2012 12:38 pm
Profile WWW
Rookie

Joined: Fri Jan 27, 2012 6:57 pm
Posts: 40
Post Re: Breakpoints in header files
Speaking of breakpoints and ROBOTC Debugging, I've noticed that you can't step through tasks other than the Main task. That is very annoying, because in the VEX Robotics Competition, all your program is in, or is called from tasks. If I try to use the debugger, all I can step through is the code in the Debug_Includes file.

In order to test a bit of broken code from my competition program, I have to either run it and observe the results after it's completely finished, or take it out and paste it and it's needed supporting code directly into the task main() of a new file. Is there anyway around this?


Attachments:
NoStep.PNG
NoStep.PNG [ 66.84 KiB | Viewed 3824 times ]
Thu Mar 22, 2012 3:09 pm
Profile
Expert

Joined: Thu Sep 29, 2011 11:09 pm
Posts: 184
Location: Michigan USA
Post Re: Breakpoints in header files
Xander, I have no idea what you mean.

_________________
Matt


Thu Mar 22, 2012 7:14 pm
Profile WWW
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3289
Location: Rotterdam, The Netherlands
Post Re: Breakpoints in header files
Check if your header file has "#pragma systemFile" in it and if it does, comment it out and restart ROBOTC.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Fri Mar 23, 2012 2:04 am
Profile WWW
Expert

Joined: Thu Sep 29, 2011 11:09 pm
Posts: 184
Location: Michigan USA
Post Re: Breakpoints in header files
Oh, no it certainly doesn't have that line.

_________________
Matt


Fri Mar 23, 2012 4:16 pm
Profile WWW
Rookie

Joined: Wed Jan 09, 2013 6:48 pm
Posts: 1
Post Re: Breakpoints in header files
I have the same issue in RobotC 3.54. Is there anyway around this?

You should really just give us a way to do a printf or something. The debugger can be useful sometimes but it is so buggy and incredibly difficult to use in comparison to others like NetBeans or Eclipse. I hate paying for such expensive software when it doesn't work well.


Wed Jan 09, 2013 6:50 pm
Profile
Expert

Joined: Tue Feb 28, 2012 3:10 pm
Posts: 195
Post Re: Breakpoints in header files
drdanielfc wrote:
...so buggy and incredibly difficult to use in comparison ... Eclipse......


Had to come out of hiding to LOL that one. I've never encountered any open source software that wasn't buggy and difficult to use, and so expensive, $49? give me a break.

use assert to break any where any time.

use writedebugstream for printf - like that isn't obvious?

now back to hiding.....

_________________
Mike aka Spiked3
http://www.spiked3.com


Wed Jan 09, 2013 9:22 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.