www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/09/23/08:39:11

Date: Thu, 23 Sep 93 14:16:49 +0200
From: pi92ae AT pt DOT hk-r DOT se (Andy addIRCt Eskilsson)
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: debugger how to

I don't have *any* hint of how to use the debug32 pprogram?
Anyone who could give me a fast tour of how to debug a simple c/c++
program.
The only thing I know are, that I need to compile with -g to include
debug information.
What I need to know for starters are:

*How to show the current c/c++ line I am on.
*How to display a named variable, how does this work with c++?
*set a breakpoint at a line/function
*a way of slowing down execution so I can read the figures flashing at
the rightmost top. (numbers)
*how to step line by line.
*hmm that ought to be all at the moment.. Well mayby one more thing..
Are there some kind of program type boundschecker or purify out there
who can check for illegal memory accesses and so on? That works with
djgpp, or is it up to me to do one ;)

Ahh well some questions that hopefully will enlighten me...
BTW an example of what I might need the debugger for...
I am constructing a "ram disk" (a school lab), now I want to see so
the variables from different while loops comes out as I want them to
and to check out so I havent written the && and nots wrong. 

	/andy
--------------------------------------------------------------------------
  Bill Gates should limit his salary to the  | PI92AE AT pt DOT hk-r DOT se is:
  number of bytes addressable by the latest  |     Andy Eskilsson
  version of MS-DOS, and be taxed based on   |    Tranbaersv. 25:12
  the number of bytes of RAM needed by the   |    s-372 38 Ronneby
  latest version of MS-Windows               |         SWEDEN
--------------------------------------------------------------------------

"Hey, it's Unix! I know this!"
		Lex, Jurassic park.

Apples has been a problem ever since eden.

Don't walk in front of me, I might be unable to follow you.
Don't walk after me, I might be unable to lead you.
Just walk by my side and be my friend.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019