home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!emba-news.uvm.edu!griffin!ertle
- From: ertle@kira.uvm.edu The Sneaky Devil
- Subject: Re: Debugging with 2 terminals. HELP!!!!!
- Message-ID: <ertle.726673028@griffin>
- Sender: news@uvm.edu
- Organization: University of Vermont -- Division of EMBA Computer Facility
- References: <1993Jan8.213710.4079@netcom.com> <1993Jan10.060451.19694@spillman.uucp>
- Distribution: usa
- Date: Sun, 10 Jan 1993 13:37:08 GMT
- Lines: 19
-
- In <1993Jan10.060451.19694@spillman.uucp> tye@spillman.uucp (E. Tye McQueen) writes:
-
- >herring@netcom.com (John Herring) writes:
- >)Does anyone know of a debugger that will allow me to run the program on
- >)one terminal and debug using the debugger in another terminal?
-
- dbx and gdb ( and possibly others ) allow you to attach a process that
- is already running using the "attach" command, I believe. So, start
- the process on one terminal ( maybe put in code to get input just
- before the part your interested in so it will stop there first ), then
- start the debugger on the other terminal and type "attach pid" where
- "pid" is the process id of the prorogram you want to debug. You can
- interrupt the execution of the process with ctrl-c. Good luck!
-
- --
- James A. Ertle |... but she's being so
- ertle@{hal|sal|kira|griffin}.uvm.edu |DIFFICULT!!!
- UVM's EMBA Computer Facility | - The Beast
- Burlington, Vt. USA |
-