← Back to team overview

yade-dev team mailing list archive

Re: Logging and debugging

 

Could you, please, send a minimal script to localize the problem?

Anton


2013/8/27 Klaus Thoeni <klaus.thoeni@xxxxxxxxx>:
> Hi Anton
>
> On Thursday 22 August 2013 08:33:58 Anton Gladky wrote:
>> 2013/8/22 Klaus Thoeni <klaus.thoeni@xxxxxxxxx>:
>> > So what can I use to see the log output? Is there an other way for doing
>> > it
>> > now? Or is this feature completely removed? If so all the LOGs in the code
>> > are for nothing now.
>>
>> LOG_WARN, LOG_ERROR, LOG_FATAL should work [1].
>>
>> > I see. Do I have to set something else? I just tried to put some std::cerr
>> > output in the code and I compiled with debug but it is not appearing.
>>
>> When I debug the code, I am doing exactly the same. It should appear or this
>> part of code is not executed.
>
> I thought so too but this seems not to be the case at least for me. It's
> working e.g. for classes like the contact law but if I put some outputs in
> methods of NewtonIntegrator or Shop which are definitely called it's not
> working. Even after recompiling debug from scratch. I have no idea what's
> going on here. Any idea?
>
>> > BTW, do you think it is possible that yade tells you that you are running
>> > it in debug mode? Maybe something like: Welcome to Yade
>> > 2013-08-15.git-4ef35b0 (debug)?
>>
>> Need to think about that. Debug-mode is just adding so-called debug-symbols.
>> It means, that during the crash you should get some more information about
>> that. That is a normal practice for the software.See, how many packages are
>> having -dbg
>> suffix. Most of them are just those symbols.
>>
>> [1] https://github.com/yade/trunk/blob/master/lib/base/Logging.hpp#L22
>>
>> Anton
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~yade-dev
>> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~yade-dev
>> More help   : https://help.launchpad.net/ListHelp
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help   : https://help.launchpad.net/ListHelp


Follow ups

References