|
Page 1 of 1
|
[ 8 posts ] |
|
Breakpoints in header files
| Author |
Message |
|
mattallen37
Expert
Joined: Thu Sep 29, 2011 11:09 pm Posts: 158 Location: Michigan USA
|
 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 |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2904 Location: Rotterdam, The Netherlands
|
 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
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Thu Mar 22, 2012 12:38 pm |
|
 |
|
sumasmreq
Rookie
Joined: Fri Jan 27, 2012 6:57 pm Posts: 40
|
 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?
|
| Thu Mar 22, 2012 3:09 pm |
|
 |
|
mattallen37
Expert
Joined: Thu Sep 29, 2011 11:09 pm Posts: 158 Location: Michigan USA
|
 Re: Breakpoints in header files
Xander, I have no idea what you mean.
_________________ Matt
|
| Thu Mar 22, 2012 7:14 pm |
|
 |
|
mightor
Moderator
Joined: Wed Mar 05, 2008 8:14 am Posts: 2904 Location: Rotterdam, The Netherlands
|
 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
_________________| Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat)| My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
| Fri Mar 23, 2012 2:04 am |
|
 |
|
mattallen37
Expert
Joined: Thu Sep 29, 2011 11:09 pm Posts: 158 Location: Michigan USA
|
 Re: Breakpoints in header files
Oh, no it certainly doesn't have that line.
_________________ Matt
|
| Fri Mar 23, 2012 4:16 pm |
|
 |
|
drdanielfc
Rookie
Joined: Wed Jan 09, 2013 6:48 pm Posts: 1
|
 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 |
|
 |
|
Spiked3
Expert
Joined: Tue Feb 28, 2012 3:10 pm Posts: 195
|
 Re: Breakpoints in header files
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 |
|
|
|
Page 1 of 1
|
[ 8 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 5 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
|
|