CudaText as a Debugger UI with custom plugin

Post Reply
Tonigau
Posts: 6
Joined: 21.03.2021 21:26

CudaText as a Debugger UI with custom plugin

Post by Tonigau »

I use the previous synwrite as the IDE for an opensource Micro-controller compiler. (they havent updated to CudaText).
The lexer & search/replace are pretty good.

I was wondering if CudaText would be capable with a plugin (or FreeBasic compiled application) to act as the UI of a code debugger to step thru code.
It would need to:
1. Highlite the current line(to be executed),
2. Place a marker for breakpoint.
3. Mouseover variables to display their value. (dynamically manipulate a lexer file?)
4. Buttons for control
5. ...

The plugin would be essentially an interpreter, after initial preprocess compiling line by line in step mode.

I guess it would be difficult to have a data exchange between CudaText & external app but maybe Python Script plugin has the necessary data exchange.
I don't know Python very well, actually I struggle a bit. (basic is my prime language - mainly VB)

I have used DDE between another code/hardware simulator & VB6 & its quite useful.

cheers
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

All these items are supported in CudaText API.

1. Highlite the current line(to be executed),
supported by ed.attr() and/or by bookmark API ed.bookmark().

2. Place a marker for breakpoint.
supported by ed.bookmark().

3. Mouseover variables to display their value. (dynamically manipulate a lexer file?)
supported by dlg_proc() API (tooltip will be custom non-modal dialog). see, for example, plugin HTML Tooltips.

4. Buttons for control
on toolbar? supported by API toolbar_proc() and by Config Toolbar plugin which can place buttons for any commands.
Last edited by main Alexey on 26.09.2022 09:58, edited 1 time in total.
main Alexey
Posts: 2245
Joined: 25.08.2021 18:15

Post by main Alexey »

Tonigau
Posts: 6
Joined: 21.03.2021 21:26

Post by Tonigau »

Thanks
Post Reply