[sldev] How do I print debug messages when compiling/running source code?

Hassan Chahrour hassan at riversrunred.com
Wed Sep 16 05:50:33 PDT 2009


Hello

Try std::cerr instead of std::cout.

Works for me but I'm on Mac XCode.


On 16 Sep 2009, at 13:46, izze euler wrote:

> Hi,
>
> I want to add some debug messages to the source code, so that I can  
> see what the code is doing and where it is going wrong.
>
> I am using
>
> std::cout << "Debug message here" << std::endl;
>
> but, where is the output going in Visual C++ 2005 Express Edition. I  
> have "show output from debug" section on the window, but my messages  
> are not being displayed there. I'm not very familiar with C++. Am I  
> using the right output?
>
> Kind Regards,
> Izze
>
> Have more than one Hotmail account? Link them together to easily  
> access both._______________________________________________
> Policies and (un)subscribe information available here:
> http://wiki.secondlife.com/wiki/SLDev
> Please read the policies before posting to keep unmoderated posting  
> privileges

-- 
Hassan Chahrour  |  Head of Technology

hassan at riversrunred.com  |   +44 (0) 207 739 7505
http://riversrunred.com  |  http://immersivespaces.com

Rivers Run Red - the immersive space company™
Rivers Run Red Limited is a company registered in England and Wales  
with company number 4906911

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/sldev/attachments/20090916/4962536e/attachment-0001.htm 


More information about the SLDev mailing list