Debugger Tips and Workarounds
Go Up to Debugging Applications Index
The following page displays a series of debugger tips and workarounds.
Debug Kernel not responding
Sometimes, the IDE hangs on the "Debug kernel is not responding. Terminate the debug process?" dialog message, and you might need to terminate the process. You can extend the wait timeout for the dialog message to show while debugging.
The default time before the “Debug kernel is not responding” error dialog appears is 25 seconds
. To increase this value to 35 seconds
, perform the following steps:
- Open Tools> Options> IDE> Environment Variables
- In User System Overrides, click New... to add the following environment variable name/value pairs:
GDB_WAITTIMEOUT 35000
- Relaunch the IDE
This new value will be used for the wait timeout for the dialog message to show while debugging. To reset it to the default value, delete this newly added environment variable and relaunch the IDE.
The IDE hang issue occurs in RAD Studio 12.1 and previous versions.
Port conflict during Debug session
If the IDE cannot start a debug session for a Delphi application on a Windows 64-bit platform due to the port conflict, do the following:
To set this DBK_DEBUG_PORT:
- Open Tools> Options> IDE> Environment Variables
- In User System Overrides, click New... to add the following environment variable name/value pairs:
DBK_DEBUG_PORT 12345
- Relaunch the IDE
The Delphi application for Windows 64-bit platform debug session will use this new port number. To reset it to the default one, delete this newly added environment variable and relaunch the IDE.