[sldev] How do I print debug messages when compiling/running source code?
Paul Oppenheim (Poppy Linden)
poppy at lindenlab.com
Fri Oct 2 12:46:15 PDT 2009
Robin Cornelius wrote:
> On Wed, Sep 16, 2009 at 1:46 PM, izze euler <izzee at hotmail.co.uk> wrote:
>> 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;
>
> you may find the ll macros easier to use in this case, because they
> will go to the console window, the SecondLife.log etc
>
> use :-
>
> llinfos << "Some Message " << llendl;
>
> or
>
> llwarns << "Some more serious message " << llendl;
>
> or
>
> llerrs << "Some fatal i'm killing the client message" << llendl;
actually, prefer the newer LL_INFOS("CodeModuleName"), etc. all-caps macros, they fit in the coding style, and are easier to control from logcontrol-dev.xml. Wiki link:
https://wiki.secondlife.com/wiki/Logging_System_Overview
/me is excessively behind on mail, sorry for late response
+ poppy
More information about the SLDev
mailing list