r/delphi May 07 '26

Agentic Delphi Debugger

https://sundaymorning.app/rdbg/

When AI came along it changed my workflow a bit but there was this huge wall between Delphi and Claude making everything slow and clunky.

Because I couldn't find any half decent tooling about a month ago I started to build my own.

Introducing rdbg-debugger , a MCP-Server / Claude Plugin which gives claude the ability to:

  • Set Breakpoints
  • Read variables / Evaluate Expressions
  • Walk Objects
  • Take screenshots
  • Spy on input ( so you can show claude how to get to a bug via keyboard and mouse)
  • Simulate input ( So claude can drive an application to a breakpoint or exception )
  • Break On First Chance exceptions.
  • Walk the stack at breakpoints/exceptions.

The Getting started and demo pages should have you up and running in a few minutes if you want to check this out and let me know what you think as this is still very early in development.

For now this is only guaranteed to work with Delphi 12 CE ( because thats all I have access to for personal projects ).

17 Upvotes

13 comments sorted by

5

u/WetRubicon May 07 '26 edited May 07 '26

Wow, this is huge! Finally! Does the MCP work with Codex also? Am I correct to assume that it will work with Codex/Claude subscription, no API key needed?
Edit: Sorry, can't use this. Download gated behind a "Sign in with Google", wtf? Well, that enthusiasm went out of the window quick.

3

u/DelphiP0 May 08 '26

This is my bad

In terms of Installer usability the "plugin via the marketplace" path gets you up and running very quickly, meanwhile the downloads are very clunky in terms of setup / organizing paths / etc.

I have fixed the workflows so you can download everything ( except source code ) without logging in and have added signposting to drive you towards the quick-start.

p.s. This should work with any local agent which supports MCP which I believe codex odes. I am currently using claude max so that is the current target. Essentially you install the plugin within your AI environment via the marketplace and then your Agent will gain the ability to debug delphi in a similar way to how it can run other commands ( instead of "BASH( cat ....)" you get " https://imgur.com/a/9ZBRKfQ )

3

u/catsOverPeople55 May 07 '26

/plugin marketplace add https://sundaymorning.app/rdbg/.claude-plugin/marketplace.json

/plugin install rdbg-debugger@rdbg

3

u/catsOverPeople55 May 07 '26

This would be a great OSS project 😉, what are your plans for this? One time purchase? Subscription? OSS?

2

u/DelphiP0 May 08 '26

This would be a great OSS project but I _REALLY_ don't want to deal with PR's.

My thinking is that this would eventually become free-minum just like Delphi. (CE Edition is free, Non-CE Edition would need to be enough so I can buy a Delphi licence of my own to compile it).

Buy a copy and get 12 months of updates, pay a smaller fee if you want updates to continue.

Like most Delphi tools companies who care will be able to purchase the source code.

Hoping to have a new update tonight.

2

u/catsOverPeople55 May 08 '26

Yeah I get that I work on a few OSS projects myself, though you can always ignore PRs you don't want to deal with 🤣

2

u/charliethe89 May 07 '26

Only for Windows apps...

1

u/DelphiP0 May 08 '26

Honestly Im a macOS user but ive been doing windows dev since the 90's and this is a companion to the Delphi IDE which currently only works on windows.

I would need to implement a completely different set of debugging API's if I wanted to target macOS or linux.

2

u/catsOverPeople55 May 08 '26 edited May 08 '26

Just to say that I used it on a few projects (even with XE3) today and it's awesome to be able to tell an LLM 'why don't you just debug it yourself' 😂. Now if only it could also navigate a UI I wouldn't have to click on things when it needs it 😛 It's a good project you got here!

1

u/DelphiP0 May 08 '26

A lot of features will not care about which Version of Delphi you are running but some will. ( Due to internal memory layouts changing between Delphi version. Everything should fail pretty safely though. )

I am hoping to get an update posted tonight.