www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

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

↑ ↓ ← "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
↑ ↓ "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
↑ ↓ "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


 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
↑ ↓ "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

 debugger with windbg hello.exe, there isn't the source window, and only

 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


 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
↑ ↓ "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

 debugger with windbg hello.exe, there isn't the source window, and only

 Assembly code, when I open source, the debugger prompt there is no


 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




 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
↑ ↓ → "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



 the
 debugger with windbg hello.exe, there isn't the source window, and



 the
 Assembly code, when I open source, the debugger prompt there is no


 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




 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