[fpc-pascal] Debug-Adapter-Protocol support for fpDebug
Martin Frb
lazarus at mfriebe.de
Sat Apr 25 16:33:30 CEST 2020
On 25/04/2020 16:07, Ryan Joseph via fpc-pascal wrote:
>
>> On Apr 24, 2020, at 3:10 AM, Joost van der Sluis <joost at cnoc.nl> wrote:
>>
>> I'm working on the support of the debug-adapter-protocol for fpDebug. It's quite easy to implement, as there already is a json-based tcp/ip interface. (https://microsoft.github.io/debug-adapter-protocol)
> I use the debugger in VSCode and while LLDB works pretty well, short strings are always a problem. I've never used fpDebug though so I can't say if it's better than LLDB (I thought it was no very mature).
>
FpDebug has the advantage that it knows "fpc".
That is on top of what is specified by the dwarf info, fpdebug does look
for other info.
Of course only, if it the dwarf info contains the producer = fpc.
ShortString (depending on dwarf version) is IIRC encoded as record. So
any debugger will show this. But fpdebug looks for some details in how
fpc writes various dwarf entries. And then detects it as shortstring.
Though this works for known fpc versions only.
More information about the fpc-pascal
mailing list