🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.opentoolsapi
Article #54

Re: Notification for debugger step

#54
From: Erik Berry
Date: Thu, 29 May 2008 07:32
27 lines
2053 bytes
>> Try IOTAThreadNotifier.ThreadNotify. 
> 
> but I have no idea where and how I can install that notifier.

You have to call IOTAThread50.AddNotifier.  You can get the IOTAThread 
interface using a process notifier and watching for ThreadCreated:

   IOTAProcessNotifier = interface(IOTANotifier)
     ['{34B2E2D6-E36F-11D1-AB0E-00C04FB16FB3}']
     { Called when a Thread is created }
     procedure ThreadCreated(const Thread: IOTAThread);
     { Called when a Thread is Destroyed }
     procedure ThreadDestroyed(const Thread: IOTAThread);
     { Called when a Process module is added }
     procedure ProcessModuleCreated(const ProcessModule: IOTAProcessModule);
     { Called when a Process module is deleted }
     procedure ProcessModuleDestroyed(const ProcessModule: IOTAProcessModule);
   end;

Or try IOTAProcess60.GetCurrentThread, etc.

You need to walk your way back until you get to a base interface like 
IOTADebuggerServices that is supported by the BorlandIDEServices global 
variable.  You may also have some luck searching the web/newsgroups for 
sample code using IOTAThreadNotifier.

Erik
Technical Details
Message-ID: <483e5c0c@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <47e7493f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10c3df,a9a5881f87b455b3
X-Google-Attributes: gid10c3df,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 29 May 2008 02:32:22 -0500
From: Erik Berry <eb@techie.zzzcom>
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
MIME-Version: 1.0
Newsgroups: borland.public.delphi.opentoolsapi
Subject: Re: Notification for debugger step
References: <47e7493f@newsgroups.borland.com>
In-Reply-To: <47e7493f@newsgroups.borland.com>
Content-Type: text/plain; charset=windows-1251; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.154.119.7
Message-ID: <483e5c0c@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1212046348 69.154.119.7 (29 May 2008 00:32:28 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail