🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.delphi.opentoolsapi
3 messages
3 total messages Started by AlexB Mon, 24 Mar 2008 06:25
Notification for debugger step
#155
Author: AlexB
Date: Mon, 24 Mar 2008 06:25
18 lines
1128 bytes
Hi all.

D2007.

What is the proper way to get notification for debugger step (F7/F8)?

I've found Erik's advice:

>> What notifier should I use to trap the right notification
>> when the process is stopped and goes into debug mode? 

> Try IOTAThreadNotifier.ThreadNotify. 

but I have no idea where and how I can install that notifier.

TIA.
-- 
Alex
Re: Notification for debugger step
#54
Author: 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
Re: Notification for debugger step
#55
Author: AlexB
Date: Thu, 29 May 2008 10:15
14 lines
1123 bytes
Erik Berry wrote:

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

OK, it's clear now.

Since then I asked I've changed my mind and decided don't respond to
every debugger step.

Thank you anyway.
-- 
Alex
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads