r/delphi • u/CarloSirna • 1h ago
Open-sourced my Delphi Win64 debugger for VS Code (and MCP)
Been building this for a while, finally made it public.
It is a brand new debugger for delphi to be used inside Visual Studio Code... and as a companion product there is a MCP server, based on the same debugging engine, that allows any AI assistant (like claude code and copilot - these are the two I use) to run and debug autonomously any Delphi Win64 application targeting windows: If you have a DUnit test that is not working, just ask claude to run it into the mcp debugger and find the issue.
Meant to be used with my "Edit in VS Code" IDE plugin, which generates the workspace + launch config from your .dproj → https://github.com/csm101/EditInVsCodeDelphiPlugin
The proper debugger and mcp server is here → https://github.com/csm101/delphi-visual-studio-code-debugger
Vs. the IDE debugger, the things that pushed me to write it:
- Parses TD32 / RSM / MAP / JCL, with prebuilt symbol-index sidecars for fast loading on big binaries
- Attach-to-running-process that's reliable, with a picker showing main-window titles
- Works for both single-exe apps and ones that LoadPackage BPLs at runtime (stepping across modules)
- A proper "stop on exception" rule engine: match on class or any ancestor, message substring/regex, Win32 exception code (catches native exceptions, not just Delphi ones), source unit + line range — action per rule: break / log / log+stack / ignore
Win64 only, MIT. Not code-signed (SmartScreen will grumble) — you can build the identical zip from source. Feedback/issues welcome.