Recent

Author Topic: Showing Strings in debuger [Solved]  (Read 488 times)

Dzandaa

  • Full Member
  • ***
  • Posts: 248
  • From C# to Lazarus
Showing Strings in debuger [Solved]
« on: March 30, 2023, 04:38:49 pm »
Hi,

In Debug Step mode, The Strings are showed like this:

$000000000565EC68^: 'My String'

Is there an option to just see:

 'My String'

Without the Address?

Perhaps I've changed something my program options because I don't have that in all my programs...

Thank you.

B->

I found the solution:
Using Dwarf 3 instead of Dwarf2.

Sorry
« Last Edit: March 30, 2023, 04:43:58 pm by Dzandaa »
Dzandaa

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9791
  • Debugger - SynEdit - and more
    • wiki
Re: Showing Strings in debuger
« Reply #1 on: March 30, 2023, 04:43:59 pm »
1) Make sure to use FpDebug ( Tools > Options > debugger backend )
2) Use "DWARF-3 ( Project options > Debugger )

---
Otherwise:
- Your OS?
- Your Lazarus and Fpc version?

Mind that on Linux, you need to make sure that all units have either Dwarf-3 or no debug info at all.
That means if your LCL is compiled with Dwarf-2, then that may or may not cause the issue (same if you use an debug build of the RTL).

--- EDIT: overlapped

 

TinyPortal © 2005-2018