Forum > Debugger
fpc debugger
guest59697:
hello Thaddy, hello community,
I like ask you if the debugger of FPC will be enhanced to be similar as the Delphi counterpart (example to be able to lookup the objects type tree, as rtti reflex).
Thank you and best regards.
Roberto
Martin_fr:
What exactly to you refer to by "the debugger of fpc"?
1) The debugger in the fp (textmode) ide (part of fpc)
2) The debugger in Lazarus
Depending on the answer I can move this topic to either of the following boards
Using the Lazarus IDE > Debugger
Fpc > textmode ide
Both of the debuggers are based on GDB (though Lazarus has also fpdebug, but that is still alpha).
Lazarus debugger has "Use Instance class" (in the property for each watch.
In case of "Sender: TObject" it will show you the data of the real class (e.g. TButton).
Lazarus also has "Debug Inspector" which shows you all the fields, and in which class each field is defined.
I don't have Delphi, so I can't compare.
guest59697:
I'm using latest lazarus/fpc combo,
if I should ask kindly, where those debugger options can be set?
R.
Martin_fr:
I am not 100% sure what you are looking for (I do not have Delphi).
Though from long ago, I believe delphi has some structured/treeview-like view for watches? This we do not have. There are no immediate plans for it. Though if we have the time, or patches are provided then it would be done...
There are several ways to view values
All available via
- the editors pop-up menu (section debug)
- The main menu, either "View">"Debug Windows", or "Run"
- keystrokes
- context menu of the watches window
Watch list: http://wiki.lazarus.freepascal.org/IDE_Window:_Watch_list
1) hit the properties button (or context menu), and select "Use instance class".
"Sender: TObject" will display all the fields of the actual class
2) The wiki is outdated, but there is another tool button "magnifier", which will open a side bar. The current selected watch will be shown with better formatting.
http://wiki.lazarus.freepascal.org/IDE_Window:_Variable_Inspector
This allows you to explore nested classes. If your look at your Form1, and it has a field FButton1, then you can doubleclick the FButton1.
http://wiki.lazarus.freepascal.org/IDE_Window:_Evaluate/Modify
More space for the result, but only one at a time
guest59697:
ok,
does exists a plugin to have the "intellisense" working and showing, unroll methods, fields and childs?
:-\
Navigation
[0] Message Index
[#] Next page