developer-delphi-debugging-techniques

Diagnose runtime issues in Delphi with conditional breakpoints, watches, and memory-leak detection.

Updated Jan 6, 2026
One-click install
npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-debugging-techniques
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: developer-delphi-debugging-techniques
Source: https://github.com/cslsoftwares/ParamentersORM/tree/main/.cursor/skills/developer-delphi-debugging-techniques_V1.0.0
Command: npx skills add https://github.com/cslsoftwares/ParamentersORM --skill developer-delphi-debugging-techniques

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Esta skill resolve a depuração avançada de aplicações Delphi, fornecendo técnicas práticas para detectar falhas, vazamentos de memória e crashes sem interromper o fluxo de desenvolvimento.

Core Features & Use Cases

  • Breakpoints condicionais, Watches e CPU View para diagnóstico em tempo real.
  • Rastreamento de vazamentos com FastMM4 e geração de relatórios com EurekaLog/MadExcept.
  • Estratégias não intrusivas com OutputDebugString e logging estratégico para diagnóstico em produção.

Quick Start

Configure breakpoints condicionais no Delphi IDE, adicione watches, ative a CPU View, e integre FastMM4/EurekaLog para iniciar o diagnóstico de um problema de runtime.

Frequently Asked Questions about developer-delphi-debugging-techniques

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find memory leaks in Delphi using FastMM4?

To find Delphi memory leaks with FastMM4, integrate the library into your project and enable leak reporting on shutdown. This generates a detailed log of unreleased objects, allowing you to trace runtime memory leaks back to their exact allocation points.

What is the best way to diagnose Delphi application crashes with EurekaLog?

The best way to diagnose Delphi application crashes using EurekaLog is to integrate the tool to automatically generate detailed bug reports. This captures the call stack, system state, and module information at the moment of failure, guiding you directly to the root cause of runtime exceptions.

How do conditional breakpoints work in the Delphi IDE?

Conditional breakpoints in the Delphi IDE pause execution only when a specified expression evaluates to true. This allows you to isolate specific runtime states and diagnose issues within loops or frequent method calls without manually stepping through irrelevant code iterations.

Can I use OutputDebugString for non-intrusive logging in Delphi production environments?

Yes, you can use OutputDebugString for non-intrusive logging in Delphi production environments. It sends diagnostic messages directly to the system debugger without impacting application performance or requiring UI interruptions, making it ideal for tracking strategic runtime states.

When should I use the CPU View in Delphi for crash analysis?

You should use the CPU View in Delphi for crash analysis when standard source-level debugging is insufficient, such as when failures occur inside compiled external libraries. It displays assembly registers and memory addresses, helping you inspect low-level execution states and diagnose severe runtime crashes.

Does MadExcept work with Delphi for tracking concurrency problems?

Yes, MadExcept works with Delphi to track concurrency problems by catching runtime crashes and generating detailed bug reports. It captures thread states and call stacks, allowing you to identify deadlocks and synchronization issues during application execution.