Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
Subject: Re: how to tell in a VMS program if it is running in DEBUGGER
Date: 25 Apr 1993 21:14:59 GMT	[thread overview]
Message-ID: <1rev0jINNlii@gap.caltech.edu> (raw)
In-Reply-To: 1993Apr25.151944.23271@husc3.harvard.edu

In article <1993Apr25.151944.23271@husc3.harvard.edu>, mlevin@husc8.harvard.edu (Michael Levin) writes:
=
=     Suppose I have a program, written in C on a VMS system. How do I
=tell within the prorgram if it happens to be running alone, or inside
=the VMS debugger? I want a function in_debug() which I can use as
=follows. Is there some system call or something?
=
=if in_debug()
=	{ }
=else
=	{ }
=
=
=	Please send all replies to mlevin@husc8.harvard.edu.

You could define a global variable called in_debug, initialize it to zero, and
if you run the program under the debugger, deposit a 1 into in_debug.
--------------------------------------------------------------------------------
Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL

Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
understanding of astronomy is purely at the amateur level (or below).  So
unless what I'm saying is directly related to VAX/VMS, don't hold me or my
organization responsible for it.  If it IS related to VAX/VMS, you can try to
hold me responsible for it, but my organization had nothing to do with it.


  reply	other threads:[~1993-04-25 21:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1993-04-25 19:19 how to tell in a VMS program if it is running in DEBUGGER Michael Levin
1993-04-25 21:14 ` Carl J Lydick [this message]
1993-04-25 23:57 ` Steve Lionel
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox