Recent

Author Topic: Inspect interface variables  (Read 2747 times)

antispam88

  • Jr. Member
  • **
  • Posts: 60
Inspect interface variables
« on: March 05, 2016, 11:21:57 pm »
Hi,
I'm using interfaces because of the reference counting feature.
But how can I inspect those variables while debugging?

Thank you for your help,
antispam88

Win 10 Prof. 64
Laz 1.6 64
FPC 3.0

Mike.Cornflake

  • Hero Member
  • *****
  • Posts: 1269
Re: Inspect interface variables
« Reply #1 on: April 10, 2016, 02:51:53 pm »
I don't use interfaces often (and then only interfaces that others have defined), so I'm not sure.

Here's an answer from the mailing lists about a different but possibly related question

Quote
Quote
On 8 April 2016 at 17:08, Santiago A. <...> wrote:
By the way, has anybody managed to debug strings.text or any property
with a getter?
...
In Lazarus use the debug INSPECTOR, you can double click any member variables, and go to nested objects etc. Once you found it copy it to watches.

Maybe this also works with interfaces?
Lazarus Trunk/FPC latest fixes on Windows 11
  I'm getting old and stale.  Slowly getting used to git, I'll get there...

antispam88

  • Jr. Member
  • **
  • Posts: 60
Re: Inspect interface variables
« Reply #2 on: April 13, 2016, 12:06:28 am »
Hi,

I'm afraid not:

Code: Pascal  [Select][+][-]
  1. _config = <ICONFIG> = {
  2.   <IUNKNOWN> = {},
  3.   }

Best regards,
antispam88

 

TinyPortal © 2005-2018