CTest interactive debug mode
CTest –interactive-debug-mode is particularly useful on Windows to enable/disable debug dumps and error popup modal windows, especially for missing DLL errors. By default this feature is enabled. This default behavior to have interactive debug mode “on” can make problems with modal popups hanging on automated systems like CI or agentic workflows where user interaction is not desired or possible. To avoid this, one can explicitly disable interactive debug mode by option
ctest --interactive-debug-mode=0In agentic instruction files like CMAKE.instructions.md or similar, consider adding a line like:
CTest on Windows should be run with option
--interactive-debug-mode=0to prevent modal popups from interrupting automated workflows.
NOTE: CTest environment variable
CTEST_INTERACTIVE_DEBUG_MODE
is read-only and has no effect on setting the interactive debug mode. The mode must be controlled via the --interactive-debug-mode command-line option when invoking CTest.