www.digitalmars.com         C & C++   DMDScript  

c++ - How to debug the program write with DM

reply "younker" <younker_dl hotmail.com> writes:
Hello, I download the DigitalMars C/C++ Compiler, and I don't know how to
debut the program wrote with it, I have the windbg application.
Aug 13 2002
parent reply "Walter" <walter digitalmars.com> writes:
"younker" <younker_dl hotmail.com> wrote in message
news:ajaidg$lsi$1 digitaldaemon.com...
 Hello, I download the DigitalMars C/C++ Compiler, and I don't know how to
 debut the program wrote with it, I have the windbg application.
Compile with -g switch. To debug the program hello.exe: windbg hello.exe
Aug 13 2002
parent reply "younker" <younker_dl hotmail.com> writes:
Thank you for your reply, but I can't use the source level, when I start the
debugger with windbg hello.exe, there isn't the source window, and only the
Assembly code, when I open source, the debugger prompt there is no symbol
can be found.

thanks.

"Walter" <walter digitalmars.com> wrote in message
news:ajbcdv$1fgp$2 digitaldaemon.com...
 "younker" <younker_dl hotmail.com> wrote in message
 news:ajaidg$lsi$1 digitaldaemon.com...
 Hello, I download the DigitalMars C/C++ Compiler, and I don't know how
to
 debut the program wrote with it, I have the windbg application.
Compile with -g switch. To debug the program hello.exe: windbg hello.exe
Aug 14 2002
parent reply "Walter" <walter digitalmars.com> writes:
Make sure you compile and link with -g. -Walter

"younker" <younker_dl hotmail.com> wrote in message
news:ajc7ia$2are$1 digitaldaemon.com...
 Thank you for your reply, but I can't use the source level, when I start
the
 debugger with windbg hello.exe, there isn't the source window, and only
the
 Assembly code, when I open source, the debugger prompt there is no symbol
 can be found.

 thanks.

 "Walter" <walter digitalmars.com> wrote in message
 news:ajbcdv$1fgp$2 digitaldaemon.com...
 "younker" <younker_dl hotmail.com> wrote in message
 news:ajaidg$lsi$1 digitaldaemon.com...
 Hello, I download the DigitalMars C/C++ Compiler, and I don't know how
to
 debut the program wrote with it, I have the windbg application.
Compile with -g switch. To debug the program hello.exe: windbg hello.exe
Aug 13 2002
parent reply "younker" <younker_dl hotmail.com> writes:
thanks for your reply,
yes, I use -g to compile my file , but not useful.


"Walter" <walter digitalmars.com> wrote in message
news:ajcsc1$2vml$1 digitaldaemon.com...
 Make sure you compile and link with -g. -Walter

 "younker" <younker_dl hotmail.com> wrote in message
 news:ajc7ia$2are$1 digitaldaemon.com...
 Thank you for your reply, but I can't use the source level, when I start
the
 debugger with windbg hello.exe, there isn't the source window, and only
the
 Assembly code, when I open source, the debugger prompt there is no
symbol
 can be found.

 thanks.

 "Walter" <walter digitalmars.com> wrote in message
 news:ajbcdv$1fgp$2 digitaldaemon.com...
 "younker" <younker_dl hotmail.com> wrote in message
 news:ajaidg$lsi$1 digitaldaemon.com...
 Hello, I download the DigitalMars C/C++ Compiler, and I don't know
how
 to
 debut the program wrote with it, I have the windbg application.
Compile with -g switch. To debug the program hello.exe: windbg hello.exe
Aug 14 2002
parent "Walter" <walter digitalmars.com> writes:
When linking, make sure the /co switch is present to the linker.

"younker" <younker_dl hotmail.com> wrote in message
news:ajd2f8$6ed$1 digitaldaemon.com...
 thanks for your reply,
 yes, I use -g to compile my file , but not useful.


 "Walter" <walter digitalmars.com> wrote in message
 news:ajcsc1$2vml$1 digitaldaemon.com...
 Make sure you compile and link with -g. -Walter

 "younker" <younker_dl hotmail.com> wrote in message
 news:ajc7ia$2are$1 digitaldaemon.com...
 Thank you for your reply, but I can't use the source level, when I
start
 the
 debugger with windbg hello.exe, there isn't the source window, and
only
 the
 Assembly code, when I open source, the debugger prompt there is no
symbol
 can be found.

 thanks.

 "Walter" <walter digitalmars.com> wrote in message
 news:ajbcdv$1fgp$2 digitaldaemon.com...
 "younker" <younker_dl hotmail.com> wrote in message
 news:ajaidg$lsi$1 digitaldaemon.com...
 Hello, I download the DigitalMars C/C++ Compiler, and I don't know
how
 to
 debut the program wrote with it, I have the windbg application.
Compile with -g switch. To debug the program hello.exe: windbg hello.exe
Aug 14 2002