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

Robin Cornelius robin.cornelius at gmail.com
Wed Sep 16 06:51:47 PDT 2009


On Wed, Sep 16, 2009 at 1:46 PM, izze euler <izzee at hotmail.co.uk> 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;
>

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;

Robin


More information about the SLDev mailing list