I have seen the  debug message. Thanks.

Sorry for bothering.

Thanks
Richard


2008/6/4, 杨伟 <[EMAIL PROTECTED]>:
>
> Yes, I found that in some functions DEBUGMSG and DEBUGMSGTL are used. BUT
> those parameters are fixed.
>
> For example, I see one usage from the net-snmp tutorial
> DEBUGMSGTL(("nstAgentSubagentObject",
>                 "Initializing the nstAgentSubagentObject module\n"));
>
> This format is odd. And what I want to do is to print the value of the
> variables in a function.
> Such as the oid , and its length. I tried some formate but do not succeed.
>
> And another question is how to display the debug information. I run the
> command "debug snmp trace", and receive the value I set, but couldn't see
> the debug message printed on the screen. So I asked this question.
>
> Thanks
> Richard
>
>
> 在08-6-3,Dave Shield <[EMAIL PROTECTED]> 写道:
>>
>> 2008/6/3 杨伟 <[EMAIL PROTECTED]>:
>> > I visited the Net-Snmp Tutorials on
>> > http://www.net-snmp.org/wiki/index.php/Tutorials
>> >
>> > When I want to see some debug method, it prompt that I have to login
>> before
>> > edit. But I don't want to edit it.
>>
>> If you follow the "Debugging using GDB" link, that should display OK.
>> You don't need to log in.
>>
>> If you try to follow any of the other links under the Debugging section,
>> then you *will* be asked to log in.   But that's because these pages don't
>> yet exist.   They are placeholders, waiting to be written.
>> That's  why all these links are red, rather than blue.
>>
>>
>> > I want to print some message on the screen.
>> > Should I use the DEBUGMSG?
>>
>> You've had an idea.
>> Why not *try* it, rather than asking here?
>>
>> Dave
>>
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to