Re: [fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-21 Thread Ryan Joseph via fpc-pascal
> On May 19, 2020, at 4:43 AM, Joost van der Sluis wrote: > > Hi all, > > As I wrote before I'm working on a fpDebug-extension for Visual Studio Code, > based on the DAB (Debug Adapter Protocol). Excellent, I applaud your efforts. I'm busy now but I'll be sure to test this later. I'm using

Re: [fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-20 Thread Martin Frb
Ok, here are some of my ideas/hopes/dreams/wishes for the IDE They are all "ideas only", with on knowledge of when/if they may be done. I provide them, in the hope they will help choosing a path for the backend. The IDE should receive a "TWatchWhateverValue" from any of the backend, that

Re: [fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-20 Thread Martin Frb
On 20/05/2020 19:54, Martin Frb wrote: If you look at using FpDebug directly, then you use TFpValue. (returned by PascalParser, or any Parser you want to add) All you need is to encapsulate PascalBuilder into a class. And stick the value and the builder into yet another object, holding both of

Re: [fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-20 Thread Martin Frb
On 20/05/2020 17:50, Joost van der Sluis wrote: I was very disappointed when i (re?)-discovered that fpDebug has a dependency on DebuggerIntf. It is a bit of a catch22: - On the one hand, FpDebug is/should be stand alone. - On the other hand, it would be a pity to have to copy all the used

Re: [fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-20 Thread Joost van der Sluis
Seems like the first message did not make it to the list. Maybe because of the attachments... Retry: Op 19-05-2020 om 16:42 schreef Martin Frb: On 19/05/2020 15:55, Joost van der Sluis wrote: It is not documented, and, to be honest, only name, value and type are being used now. It is just a

Re: [fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-19 Thread Martin Frb
On 19/05/2020 15:55, Joost van der Sluis wrote: On 5/19/20 12:59 PM, Martin Frb wrote: Where is that documented? Assuming this is part of the API? E.g. what goes into Flags/AdditionalInfo? You misunderstood me. The class above is my own design. The variable-definition of DAB is even simpler.

Re: [fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-19 Thread Joost van der Sluis
On 5/19/20 12:59 PM, Martin Frb wrote: On 19/05/2020 10:42, Joost van der Sluis wrote: It is basically this class: (see https://gitlab.freepascal.org/Joost/fpdserver/blob/master/fpdbgvariables.pas)   TDbgVariable = class   private     FName: string;     FValue: string;     FType: string;    

Re: [fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-19 Thread Martin Frb
On 19/05/2020 12:59, Martin Frb wrote: Where is that documented? Assuming this is part of the API? The closest I could find: https://microsoft.github.io/debug-adapter-protocol/specification#Types_Variable I would much prefer if "Flags: TStringArray" could be a "set of (...)" And then somehow

Re: [fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-19 Thread Martin Frb
On 19/05/2020 10:42, Joost van der Sluis wrote: Yes, you write about it earlier. Now it's time to discuss things. Looking at the DAB-protocol I came to some new insights. Microsoft managed to create a simple interface which makes it possible for all kinds of debuggers to work with the same

Re: [fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-19 Thread Joost van der Sluis
On 5/19/20 12:22 AM, Martin Frb wrote: On 18/05/2020 23:43, Joost van der Sluis wrote: All the basics should work, if someone could test it a bit that would be nice. Threading-support is still very lacking, and how variables are presented is not really nice. I'll be working on that. While

Re: [fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-18 Thread Martin Frb
On 18/05/2020 23:43, Joost van der Sluis wrote: All the basics should work, if someone could test it a bit that would be nice. Threading-support is still very lacking, and how variables are presented is not really nice. I'll be working on that. While this can be changed in PascalBuilder,

[fpc-pascal] fpDebug extension for Visual Studio Code

2020-05-18 Thread Joost van der Sluis
Hi all, As I wrote before I'm working on a fpDebug-extension for Visual Studio Code, based on the DAB (Debug Adapter Protocol). This protocol is also used by other editors. I have a first version ready. It consists of the parts: the fpdserver which implements the DAB-protocal and the