Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Debugging In Another Level – DebugEngine

debugging in another level debugengine

Most of the time developers spend debugging their code, tracing the errors, checking the variables’ value changes over time.

When it comes to Delphi, we have several professional debugging tools that help to access the Delphi debug information and finding the problems easily.

One of the finest Delphi debugging frameworks is the DebugEngine.

What is DebugEngine?

DebugEngine is a collection of utilities related to debugging stuff (stack trace, CPU registers snapshot, debug info). 

You can find detailed information on how to configure the DebugEngine in your environment here.

var
  P: Pointer;
begin
  { Private variable System.MemoryManager }
  P := GetSymbolAddress(0, 'System', 'MemoryManager');
  { Private method System.SetExceptionHandler }
  P := GetSymbolAddress(0, '', 'SetExceptionHandler'); 
  { Protected method TCustomForm.CloseModal } 
  P := GetSymbolAddress(0, '', 'TCustomForm.CloseModal');
  { Windows api }
  P := GetSymbolAddress(GetModuleHandle(user32), '', 'MessageBoxA');
end;

Features:

DebugEngine has a lot of functions and utilities allowing you to do for example:

Head over and check out the DebugEngine framework for Delphi!

Exit mobile version