Thread overview
How to debug the program write with DM
Aug 13, 2002
younker
Aug 13, 2002
Walter
Aug 14, 2002
younker
Aug 14, 2002
Walter
Aug 14, 2002
younker
Aug 14, 2002
Walter
August 13, 2002
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.


August 13, 2002
"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



August 14, 2002
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
>
>
>


August 14, 2002
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
> >
> >
> >
>
>


August 14, 2002
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
> > >
> > >
> > >
> >
> >
>
>


August 14, 2002
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
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>