From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,68b038366e15f2a1,start X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,68b038366e15f2a1,start X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1993-04-25 12:35:19 PST Xref: gmd.de comp.sys.dec:7270 comp.os.vms:22483 Path: gmd.de!ira.uka.de!sol.ctr.columbia.edu!howland.reston.ans.net!noc.near.net!das-news.harvard.edu!husc-news.harvard.edu!husc8.harvard.edu!mlevin Newsgroups: comp.sys.dec,comp.os.vms Subject: how to tell in a VMS program if it is running in DEBUGGER Message-ID: <1993Apr25.151944.23271@husc3.harvard.edu> From: mlevin@husc8.harvard.edu (Michael Levin) Date: 25 Apr 93 15:19:43 EDT Distribution: usa Organization: Harvard University Science Center Nntp-Posting-Host: husc8.harvard.edu 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. Mike Levin