Re: [Lazarus] Switching debugger based on Project settings for embedded targets

2018-11-21 Thread Dimitrios Chr. Ioannidis via lazarus
Hi, On 2018-11-20 23:44, Michael Ring via lazarus wrote: What is the best way to implement this project based override, I guess I can do the coding myself as I have also created my own debugger for JLink, but I do not know how to do this debugger switching in the proper 'Lazarus' way. I

Re: [Lazarus] what can we do to get a better debugger

2018-11-21 Thread Graeme Geldenhuys via lazarus
On 2018-11-20 10:37 a.m., Dennis via lazarus wrote: > Shall we start a fund raising event to raise fund for a new and better > debugger for FPC + Lazarus? Indeed, the debugger is the weakest part of FPC/Lazarus development tools. The problem is not so much funding the idea of implementing a dedi

Re: [Lazarus] what can we do to get a better debugger

2018-11-21 Thread Joost van der Sluis via lazarus
Op 20-11-18 om 12:19 schreef Martin Frb via lazarus: On 20/11/2018 11:37, Dennis via lazarus wrote: FPC and Lazarus are great but the GDB is inadequate. Many times in my development, GDB failed or crashed, especially when I am debugging multi thread programs. Shall we start a fund raising eve

Re: [Lazarus] what can we do to get a better debugger

2018-11-21 Thread Joost van der Sluis via lazarus
Op 21-11-18 om 11:30 schreef Graeme Geldenhuys via lazarus: On 2018-11-20 10:37 a.m., Dennis via lazarus wrote: Indeed, the debugger is the weakest part of FPC/Lazarus development tools. I don't agree. The lack of a good (online) package-system is the weakest part. (debugging might be the se

[Lazarus] mEDBG Debugger [[was: Re: Switching debugger based on Project settings for embedded targets]]

2018-11-21 Thread Martin Frb via lazarus
On 21/11/2018 10:58, Dimitrios Chr. Ioannidis via lazarus wrote:   I would like to be involved / help as I am thinking implementing the mEDBG protocol and intergrate it to Lazarus to debug AVR MCU's using this debugger https://hackaday.io/project/162372-xplained-yourself .   I already tried to

Re: [Lazarus] what can we do to get a better debugger

2018-11-21 Thread Martin Frb via lazarus
On 21/11/2018 13:08, Joost van der Sluis via lazarus wrote: Op 20-11-18 om 12:19 schreef Martin Frb via lazarus: That work is already in process (though very slowly / work has started/stopped plenty of times over the past many years). It is called FpDebug. Donations are still welcome. Under

Re: [Lazarus] mEDBG Debugger [[was: Re: Switching debugger based on Project settings for embedded targets]]

2018-11-21 Thread Dimitrios Chr. Ioannidis via lazarus
Hi, thx for the info ! On 2018-11-21 14:25, Martin Frb via lazarus wrote: Depending on how your external exe works, you need some sort of control when to send which message, and how to parse the answers... Actually I'll communicate with the HW Debugger using mEDBG Protocol via Serial ( U

Re: [Lazarus] mEDBG Debugger [[was: Re: Switching debugger based on Project settings for embedded targets]]

2018-11-21 Thread Martin Frb via lazarus
On 21/11/2018 14:09, Dimitrios Chr. Ioannidis via lazarus wrote: Hi,   thx for the info ! On 2018-11-21 14:25, Martin Frb via lazarus wrote: Depending on how your external exe works, you need some sort of control when to send which message, and how to parse the answers...   Actually I'll com

Re: [Lazarus] what can we do to get a better debugger

2018-11-21 Thread Joost van der Sluis via lazarus
Op 21-11-18 om 13:42 schreef Martin Frb via lazarus: On 21/11/2018 13:08, Joost van der Sluis via lazarus wrote: Op 20-11-18 om 12:19 schreef Martin Frb via lazarus: That work is already in process (though very slowly / work has started/stopped plenty of times over the past many years). It i

Re: [Lazarus] mEDBG Debugger [[was: Re: Switching debugger based on Project settings for embedded targets]]

2018-11-21 Thread Michael Ring via lazarus
I can also provide you my implementation for JLink-Debugger if it helps, thanks to some great improovements Martin did in the past the code I needed to add was reduced to a minimum, and I am now checking if I need my own implementation at all Michael Am 21.11.18 um 14:28 schrieb Martin Fr

Re: [Lazarus] what can we do to get a better debugger

2018-11-21 Thread Martin Frb via lazarus
On 21/11/2018 14:55, Joost van der Sluis via lazarus wrote: When I tested (last week), using "Pause" button, only the main thread stopped. There is no option to choose which thread you want to stop, no? Not that I have seen. I think (just a feeling/ no evidence) the debugger (in linux-classes)

[Lazarus] editorconfig support

2018-11-21 Thread Dmitry Boyarintsev via lazarus
Hello, if anyone is interested, I've started a support of editorconfig https://github.com/skalogryz/editorConfig for Pascal in general (which you can use in your editor project), as well as Lazarus IDE extension thanks, Dmitry -- ___ lazarus mailing li

Re: [Lazarus] Switching debugger based on Project settings for embedded targets

2018-11-21 Thread Michael Ring via lazarus
Hi Martin, thank you for the detailled answer. I like your idea of creating Id's for debugger configurations and as I want to go step by step (and I have great respect of 130kBytes of code in TEnvironmentOptions) I wanted to start small and grow as I go. I am tempted to give the full refac

Re: [Lazarus] Switching debugger based on Project settings for embedded targets

2018-11-21 Thread Martin Frb via lazarus
On 21/11/2018 17:34, Michael Ring via lazarus wrote: Hi Martin, thank you for the detailled answer. I like your idea of creating Id's for debugger configurations and as I want to go step by step (and I have great respect of 130kBytes of code in TEnvironmentOptions) I wanted to start small and