Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: How detect run from IDE/EXE Date: Fri, 13 Nov 2020 10:38:59 +0100 Lines: 22 Message-ID: References: <8e61c8a6-baf0-4e80-a928-296d19c6bb7cn@googlegroups.com> <56106e4e-82ff-4650-b5f5-dc933ff388f6n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net lRxHA+zkY8J05UnekSuGHwb4uOFH172kpvFMszbfDqUWYE8GA= Cancel-Lock: sha1:KhYFfNTZfhgr0K5+aZW3zeT7yAk= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:13143 Hi Gregory, > I though of detecting DBG but did not know how to get location... > > GetModuleFileName is Windows function? yes, it is. > Do I understand corretly that debugging X# is more difficult than VO > (no step by step debugger)? the debugger itself works much better, but when started from the IDE it is not easy to detect that because it is the normal executable that gets started. To detect if running from the IDE I had to check the calling process to see if it is Visual Studio or XIDE. Wolfgang --