variable value lazarus / 12-Debugger ---------------------------------------------------------------------- heavy · 2011-01-29 18:02 How can I see what value does contain a variable during runing the program with f7/f8 (trace into/over)? In fpc there is a tab debug and watches. I am sorry for my mistakes... ---------------------------------------------------------------------- Martin_fr · 2011-01-29 18:30 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. ---------------------------------------------------------------------- heavy · 2011-01-29 18:43 You can inspect by hovering with the mouse, getting the value as hint. This is working but it's a little annoying cause it takes a little to see the value. I don't know how can I see the watches window. (I found it) gdb.exe is set as debugger. I can't find where I can do that (compile with dwarf). Thanks! ---------------------------------------------------------------------- Martin_fr · 2011-01-29 18:55 Quote from: heavy on January 29, 2011, 07:43:47 pmI don't know how can I see the watches window. (I found it) You can not, or you just did? "View" Menu, almost at the bottom, Sub- menu "Debug Windows" Quotegdb.exe is set as debugger. I can't find where I can do that (compile with dwarf). Menu "Project" / "Project Options"  (maybe "Compiler Options" in older Lazarus). It's on the tab "Linking" => "generate dwarf debug info" And on tab "other" in the big memo "custom options" you may want to put -godwarfsets Also remember, that if you whish to debug stuff in other packages or LCL, you may have to recompile those with debug info too. Also, I advice to use 0.9.29 fixes version of Lazarus. As it had a few improvements. Or go for 0.9.31 ---------------------------------------------------------------------- heavy · 2011-01-29 19:53 "You can not, or you just did? "View" Menu, almost at the bottom, Sub- menu "Debug Windows"" - I just did. Thanks!!