What does '()' mean in the Delphi Debugger?

spierepf

The value '()' keeps coming up whenever I inspect or watch an expression in the Delphi debugger.

What does it mean ? And if it represents an object of some kind, how can I visualize that object's state ?

Mason Wheeler

It can mean two different things, depending on whether you're looking at an array or an object.

For an array, it means you have an array (usually a dynamic array) containing 0 elements.

For an object, it's a bit more complicated. It means that you're examining an object that's declared as a type that does not contain any data members. If you're looking at a variable that's declared as TObject in the code (such as a Sender: TObject in an event handler), the actual type is almost certainly not TObject, but the debugger will evaluate it as the type it's declared as.

To get actual data about the object, do this:

  • Pull up Evaluate/Modify (Ctrl-F7).
  • Evaluate the object's real type. (Sender.classtype)
  • Evaluate the object, cast to its real type. (TMyObject(Sender)). This will tell you what the object actually contains.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

What does "& _" mean in VB?

来自分类Dev

What does it mean for a call to "spin"

来自分类Dev

What does the clojure syntax '[] mean?

来自分类Dev

What does "changeset stripped" mean?

来自分类Dev

What does `rep ret` mean?

来自分类Dev

What does LTR kernel mean?

来自分类Dev

What does this symbol mean in Racket?

来自分类Dev

what does "ls'" mean in Linux?

来自分类Dev

What does # (hash) mean when it doesn't mean Windows key?

来自分类Dev

What does this pattern ^[%w-.]+$ mean in Lua?

来自分类Dev

What does the "required" keyword in Swift mean?

来自分类Dev

What does it mean for a label target to receive a value?

来自分类Dev

What does it mean to run a local web server?

来自分类Dev

What does radix mean in a radix tree?

来自分类Dev

What does .Er mean in a man page?

来自分类Dev

What does Map<String, Serializable> mean?

来自分类Dev

What does O(O(f(n))) mean?

来自分类Dev

What does ebp and esp in a disassembly code mean?

来自分类Dev

What does the notation () => mean and how to use it?

来自分类Dev

What does "0 rows" mean when running a Rails migration?

来自分类Dev

What does "tampered with before resolve" mean on file resolve?

来自分类Dev

Twilio 11200 HTTP Retrieval Failure — What does this mean?

来自分类Dev

What does mean marker in [ ] at packages.debian.org

来自分类Dev

In Objective-C, what does it mean to assign a weak to a strong within a block?

来自分类Dev

What does it mean when variables start with a dot/period in vb.net?

来自分类Dev

what is by mean an instance? or instance of?

来自分类Dev

dll Visual Studio 2010(C#)中的Debugger.Break()和Delphi 6问题

来自分类Dev

What does @SingleValueResult do?

来自分类Dev

What does iconv stand for?

Related 相关文章

热门标签

归档