🚀 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 Thu, 10 Jan 2008 04:17
Custom watches
#113
Author: AlexB
Date: Thu, 10 Jan 2008 04:17
12 lines
1101 bytes
Hi all.

I want to create custom watch window. Is this possible ?

If I have name of variable how can I on breakpoint:
- determine the type of variable (at least for base integer and float
types and for pointers on them) and size of array ?
- get single value and values in array ?

TIA.
-- 
Alex
Re: Custom watches
#119
Author: Erik Berry
Date: Tue, 22 Jan 2008 20:59
20 lines
1811 bytes
AlexB wrote:
> I want to create custom watch window. Is this possible ?

You have most of the features available to do this.  There is basic support 
to evaluate expressions while at breakpoints, and there is the ability to 
create a dockable window that you completely construct/manage yourself using 
normal VCL controls.  There is a sample dockable window in the FAQ here:
http://www.gexperts.org/opentools/

> If I have name of variable how can I on breakpoint:
> - determine the type of variable (at least for base integer and float
> types and for pointers on them) and size of array ?
> - get single value and values in array ?

IOTAThread50.Evaluate should be able to evaluate any expression that the 
normal watch window can evaluate.  I don't know offhand if there is enough 
OTA support for getting the class/type details for an expression to do what 
you need, but you can do things like Object.ClassName, if that helps.

Erik
Re: Custom watches
#121
Author: AlexB
Date: Wed, 23 Jan 2008 03:57
19 lines
1202 bytes
Erik Berry wrote:

> AlexB wrote:
>> I want to create custom watch window. Is this possible ?

> There is a sample dockable window in the FAQ here:
> http://www.gexperts.org/opentools/

Yes, I know this very useful site, thank you.

> IOTAThread50.Evaluate should be able to evaluate any expression that
> the normal watch window can evaluate.
...
> Object.ClassName

OK, I'll try it.  Thank you again.

-- 
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