Well in Lazarus, you got many ways.
You can inspect by hovering with the mouse, getting the value as hint.
You can use the Watches window (or Locals)
But first of all:
- make sure you configured gdb as debugger, in Environment Options.
- make sure you compiled with debug info (best to compile with dwarf (-gw), in Project options, linking tab
Then go to the View menu, "debug windows" and select what you need.
The Faq also has a section on what works, and what works not in debugging. Most notable, properties. Since unfortunately, some properties can not be viewed.