Page 1 of 1

Author:  EricPascual [ Fri Dec 28, 2007 2:54 pm ]
Post subject:  debugPrint


I just tried to use debugPrint functions, but got no message in the "Debug Stream" window, apart the ones generated by the system itself (Start, Stop,...). I've checked that the program has been compiled in Debug mode, and even tried to switch configurations, but without any success.

I'm running RobotC 1.10 with latest NXT firmware (7.23) on Windows XP Pro SP2.

TIA for any suggestion.

Best regards


Author:  elemes [ Fri Dec 28, 2007 8:31 pm ]
Post subject:  compiler bug

This is a compiler bug, registered at the robotc bug tracker (case #00170).

Workaround: use writeDebugStream() instead of debugPrintLine() and manually add the CR/LF at the end of the line.

Author:  EricPascual [ Fri Dec 28, 2007 9:14 pm ]
Post subject: 

Thanks Elemes,

Doing some more tests and looking at the produced assembly code, I could see that the compiler generates nothing for these statements.

Best regards


Author:  starwarslegokid [ Sat Dec 29, 2007 4:39 pm ]
Post subject: 

If you find any bugs, please post them in the bug tracker, that way they can be fixed for future releases B-)

Mantis Bug Tracker: ... n_page.php
You will have to make a mantis account to post bugs


Author:  EricPascual [ Sat Dec 29, 2007 8:11 pm ]
Post subject: 

Hi Scott,

I found the existence of Mantis after having posted the first message.

Since then I've logged another strange thing (bug ?) BTW.

Best regards

Author:  Dick Swan [ Mon Dec 31, 2007 5:13 am ]
Post subject: 

Fixed in version 1.13 which should be posted this week.

The problem was duplicate name "sString" for local variable and for macro parameter when macro parmameter had value 'sString". Changed code to:

#define debugPrintLine(format, parm1, parm2)\
string sString_001;\
StringFormat(sString_001, format, parm1, parm2);\

Author:  elemes [ Mon Dec 31, 2007 6:26 am ]
Post subject:  Mantis

Wow, are RobotC developers also aware of Mantis...? I believed it is just for helping users by inform each other about known bux :-)

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group