ns.exe versus nstk.exe - debugging

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown ns.exe versus nstk.exe - debugging

by Micheal Murray-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi all,

I have had previous success in debugging ns2 tcl scripts through otcl and
C++ debugging,
using a combination of ddd, MashInspector in nstk environment, and the tcl
debugger.

However I have recently found trouble trying to debug with ddd. When I open
the ns.exe
program I am given the 'no debugging symbols found' reply. However when I
open the
nstk.exe program I can proceed just fine.

The otcl side of debugging is working just fine also.
Is there a straightforward explanation for this?
Has anyone else encountered this?

I have taken the following steps to enable debugging support:
        > added "-g" in makefile.in such that
                    CFLAGS    += -g $(CCOPT) $(DEFINE)
        > added "--enable-symbols" to tcl's configure command in
ns-allinone/install
        > added "--enable-debug" to tclcl's configure in same file
        > configured ns-2 with "--enable-debug" flag as well as
"--with-tcldebug"

I have also noticed that gdb doesn't like the guard32.dll belonging to
Comodo's Firewall (v3).
There has been a bug report made on this in the Comodo forum. The only way
around it at
the minute appears to be disabling guard32.dll.

Thanks for your time,
Micheal

Parent Message unknown Re: ns.exe versus nstk.exe - debugging

by Micheal Murray-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Basim,

I have found Pedro Vale Estrela's pages to be extremely helpful.
There is a panel of links on the left hand side of his homepage which
provide
invaluable information for beginners and advanced users alike.
http://tagus.inesc-id.pt/~pestrela/ns2/

If you step through the debugging pages here it will give you a great
platform to start
debugging from. The otcl debugging is particularly helpful.
There are also lots of useful tips provided throughout the webpages.

Hope this helps,
Regards,
Micheal

2008/8/8 Basim Javed <basimjaved@...>

> hello Micheal
>
> could you please guide of how to do debugging and which tools are used. I
> am using ns2.31.
> thanks in advance.
> regards
> basim
>
>
> On Fri, Aug 8, 2008 at 1:14 PM, Micheal Murray <mickmur@...> wrote:
>
>>
>> Hi all,
>>
>> I have had previous success in debugging ns2 tcl scripts through otcl and
>> C++ debugging,
>> using a combination of ddd, MashInspector in nstk environment, and the tcl
>> debugger.
>>
>> However I have recently found trouble trying to debug with ddd. When I
>> open
>> the ns.exe
>> program I am given the 'no debugging symbols found' reply. However when I
>> open the
>> nstk.exe program I can proceed just fine.
>>
>> The otcl side of debugging is working just fine also.
>> Is there a straightforward explanation for this?
>> Has anyone else encountered this?
>>
>> I have taken the following steps to enable debugging support:
>>        > added "-g" in makefile.in such that
>>                    CFLAGS    += -g $(CCOPT) $(DEFINE)
>>        > added "--enable-symbols" to tcl's configure command in
>> ns-allinone/install
>>        > added "--enable-debug" to tclcl's configure in same file
>>        > configured ns-2 with "--enable-debug" flag as well as
>> "--with-tcldebug"
>>
>> I have also noticed that gdb doesn't like the guard32.dll belonging to
>> Comodo's Firewall (v3).
>> There has been a bug report made on this in the Comodo forum. The only way
>> around it at
>> the minute appears to be disabling guard32.dll.
>>
>> Thanks for your time,
>> Micheal
>>
>
>

ns.exe versus nstk.exe - how to debug ?!

by hamide :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear researchers

will u please tell me about how do u work with ur debugging? i've installed ddd and with ns.exe it doesnt work but with nstk.exe yes. but then when i try to run a my tcl code which is connected to a c++ code , it seems it doesnt know header of c++ and in first line of my c++ code it say that it doent know '<' (beginning of <include>).
i've added "-g" in makefile.:
                    CFLAGS    += -g $(CCOPT) $(DEFINE)
but not other things. cuz it doesnt let me to have complete install. it gives an error of stubptr in otcl building.
anyway nstk.exe works. now how should i debug. would u give me a simple guidance of how to make a breakpoint in my c++ code. what should i do now ?
will u help me plz?
thx u in advance.

Micheal Murray-2 wrote:
Hi all,

I have had previous success in debugging ns2 tcl scripts through otcl and
C++ debugging,
using a combination of ddd, MashInspector in nstk environment, and the tcl
debugger.

However I have recently found trouble trying to debug with ddd. When I open
the ns.exe
program I am given the 'no debugging symbols found' reply. However when I
open the
nstk.exe program I can proceed just fine.

The otcl side of debugging is working just fine also.
Is there a straightforward explanation for this?
Has anyone else encountered this?

I have taken the following steps to enable debugging support:
        > added "-g" in makefile.in such that
                    CFLAGS    += -g $(CCOPT) $(DEFINE)
        > added "--enable-symbols" to tcl's configure command in
ns-allinone/install
        > added "--enable-debug" to tclcl's configure in same file
        > configured ns-2 with "--enable-debug" flag as well as
"--with-tcldebug"

I have also noticed that gdb doesn't like the guard32.dll belonging to
Comodo's Firewall (v3).
There has been a bug report made on this in the Comodo forum. The only way
around it at
the minute appears to be disabling guard32.dll.

Thanks for your time,
Micheal