Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2018-05

Re: working with lldb

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ingemar Ragnemalm

Den 2018-05-05 kl. 12:00, skrev Mr Bee :

Hi, Is there a way to make LLDB able to read and display Pascal's string correctly? At least, ansi string. I'm now using this option '-glpsw3 -godwarfcpp'. Did I miss some options or something? Thank you.

In my experience, AnsiStrings will print with no problems. For example, they print nicely with a command like "fr v" as well as "p". Short strings are worse, they display as arrays or separate characters.

So what are you doing with them that goes wrong?

/Ingemar

Reply by email

Mr Bee
to Ingemar Ragnemalm

Nothing fancy actually. I just want to watch some string variables while debugging, but LLDB just gives me like some kind of array with garbage values. Not 'm using FPC v.3.0.2 with VS Code and LLDB (as VS Code plugin) on Mac.

–Mr Bee

Pada Sabtu, 5 Mei 2018 17.25.58 WIB, Ingemar Ragnemalm menulis:

Den 2018-05-05 kl. 12:00, skrev Mr Bee :

Hi, Is there a way to make LLDB able to read and display Pascal's string correctly? At least, ansi string. I'm now using this option '-glpsw3 -godwarfcpp'. Did I miss some options or something? Thank you.

In my experience, AnsiStrings will print with no problems. For example, they print nicely with a command like "fr v" as well as "p". Short strings are worse, they display as arrays or separate characters.

So what are you doing with them that goes wrong?

/Ingemar

Reply by email