Recent

Author Topic: How to use the Event Log?  (Read 509 times)

WooBean

  • Full Member
  • ***
  • Posts: 209
How to use the Event Log?
« on: May 31, 2023, 06:10:09 pm »
Lazarus IDE configuration contains an option Event Log as a part of IDE Options/Debugger.
I can not find any clue what is it for and how to use it.
Any pointer?

See attached file from Lazarus 2.2.4 (Win 64).
« Last Edit: May 31, 2023, 06:11:54 pm by WooBean »
Platforms: Win7/64, Linux Mint Ulyssa/64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9210
  • Debugger - SynEdit - and more
    • wiki
Re: How to use the Event Log?
« Reply #1 on: May 31, 2023, 06:36:59 pm »
Menu: View > Debug Windows > Event Log

https://wiki.lazarus.freepascal.org/IDE_Window:_Event_Log (wiki is outdated)

WooBean

  • Full Member
  • ***
  • Posts: 209
Re: How to use the Event Log?
« Reply #2 on: May 31, 2023, 07:08:23 pm »
Menu: View > Debug Windows > Event Log

https://wiki.lazarus.freepascal.org/IDE_Window:_Event_Log (wiki is outdated)

Thanks for a clue.
I tried to follow it by changing debugger from default FpDebug (what do not promise a lucky way) to GDB (just to follow a wiki guidance) but ... ups.
I have got the below:

 
« Last Edit: May 31, 2023, 08:07:04 pm by WooBean »
Platforms: Win7/64, Linux Mint Ulyssa/64

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9210
  • Debugger - SynEdit - and more
    • wiki
Re: How to use the Event Log?
« Reply #3 on: May 31, 2023, 09:55:07 pm »
I tried to follow it by changing debugger from default FpDebug (what do not promise a lucky way) to GDB (just to follow a wiki guidance) but ... ups.

Which page on the wiki? That page is outdated.

The current recommendation for debugger:

On Windows and Linux: FpDebug
On Mac: LLDB with FpDebug

Use GDB (or gdb server), only if you
- Do Remote debugging (to another machine / using gdbserver)
- Do not have an Intel/AMD (compatible) cpu. (Except on Mac, where M2 is supported by the above recommendation)
  (And except for cross AVR, for which there is an FpDebug variant)
- Have a 32bit IDE but want to cross debug a 64bit application (better get the 64bit IDE)
- On Mac, and have this issue: https://forum.lazarus.freepascal.org/index.php/topic,61261.0.html
- Very few other edge cases.



As for the error: That is (99% likely) a bug in GDB. Nothing we can do (hence we wrote FpDebug, because at least with that: We can do).

In case you want to experiment further with GDB: Make sure you did not use "Dwarf 3" => This increases the chances of crashing GDB.
"Dwarf 2 with sets" is better.
Then try different GDB versions, sometimes older are better. (For Windows we have a few for download, on our sourceforge page).

WooBean

  • Full Member
  • ***
  • Posts: 209
Re: How to use the Event Log?
« Reply #4 on: June 01, 2023, 09:13:35 am »
Martin, thanks for trying to help.
Which page on the wiki? -Just to explain a wiki jumping, they were as follows -
1: https://wiki.lazarus.freepascal.org/IDE_Window:_Event_Log (last edited 2 February 2021, at 05:30), then as it starts from "Important" link to
2: https://wiki.lazarus.freepascal.org/Debugger_Setup (last edited 13 May 2022, at 10:07) and then  (from "See also") to
3: https://wiki.lazarus.freepascal.org/IDE_Window:_DebuggerGeneralOptionsFrame (edited 11 October 2019, at 19:10) and
4: https://wiki.lazarus.freepascal.org/IDE_Window:_DebuggerClassOptionsFrame (edited 5 February 2021, at 18:21) which points back to [2:].

TODO for me - a lot of jumping inside IDE and documentation (including  the wiki) ahead.

PS. I'm trying to deeply and effectively debug  Lazarus (2.2.4) project compiled with default options for Debugging IDE:
-gw3  //Generate DWARFv3 debug information
-gl   //Use line info unit (show more info with backtraces)
-gh   //Use heaptrace unit (for memory leak/corruption debugging)
-gt   //Trash local variables (to detect uninitialized uses; multiple 't' changes
-Co   //Check overflow of integer operations
-Cr   //Range checking
-Ci   //IO-checking
-Sa   //Turn on assertions
« Last Edit: June 01, 2023, 09:26:11 am by WooBean »
Platforms: Win7/64, Linux Mint Ulyssa/64

 

TinyPortal © 2005-2018