Debugging a Delphi extension using RAD Studio
For debugging the extension in RAD Studio you should:
- In the project properties -
Options
->Debugger
:- Set
Host application
:C:/Program Files/ENCY Software/ENCY/Bin64/ency.exe
; - Set
Parameters
:/EXTENSION_DEBUG_FOLDER=\"${workspaceFolder}/project/main/bin/Debug
. Instead of${workspaceFolder}
specify the full path to the directory with an example.
- Set
- Copy the
settings.json
file to thebin\debug
directory.
This means that selecting Run (F9)
:
- RAD Studio Compiles your project, placing the DLL in the path specified in the project settings;
- C:/Program Files/ENCY Software/ENCY/Bin64/ency.exe is launched with the parameter
/EXTENSION_DEBUG_FOLDER="${workspaceFolder}/project/main/bin/Debug"
; - ENCY, in addition to the extensions already registered, analyzes the directory
${workspaceFolder}/project/main/bin/Debug
, loading just compileddll
file according to thesettings.json
file; - Your breakpoints in RAD Studio will be hit as your extension is used in the ENCY application.