# ctest --interactive-debug-mode not allowing error dialog on Windows

**URL:** https://discourse.cmake.org/t/ctest-interactive-debug-mode-not-allowing-error-dialog-on-windows/3526
**Category:** Usage
**Tags:** os:windows
**Created:** [June 8, 2021, 8:52pm UTC](https://discourse.cmake.org/t/ctest-interactive-debug-mode-not-allowing-error-dialog-on-windows/3526 "2021-06-08T20:52:22Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)
#### Post date: [June 8, 2021, 8:52pm UTC](https://discourse.cmake.org/t/ctest-interactive-debug-mode-not-allowing-error-dialog-on-windows/3526/1 "2021-06-08T20:52:22Z")

</div>

Running a Windows executable with PATH missing the path to a required .dll that’s not on the working directory typically causes error code 0xc0000135 and a popup dialog telling which .dll file is missing.

With CTest (across any version of CMake I’ve used in past couple years), a missing DLL on PATH does not cause this popup dialog to appear (but 0xc0000135 is raised). The [solution would seem to be](https://cmake.org/cmake/help/latest/manual/ctest.1.html):

```auto
ctest --interactive-debug-mode 1

```

However this does not seem to have any effect. Is this something that broke at some point? Like something that worked on Windows XP or 7 and not on 10?  
Having this work (again) would be quite helpful when unit tests fail on user Windows computers.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [June 8, 2021, 10:30pm UTC](https://discourse.cmake.org/t/ctest-interactive-debug-mode-not-allowing-error-dialog-on-windows/3526/2 "2021-06-08T22:30:07Z")

</div>

Hmm. I’ve always at least seen the `0xc0000135` come back as the exit code and CTest shows that. I don’t think the dialog is all that helpful other than that (unless it now finally mentions the DLL name that couldn’t be found?).

The defaults seem to be what one would want at least. Are the tests you’re running blocking it somehow?

---

<div class="post-metadata">

### Author: ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)
#### Post date: [June 9, 2021, 12:45am UTC](https://discourse.cmake.org/t/ctest-interactive-debug-mode-not-allowing-error-dialog-on-windows/3526/3 "2021-06-09T00:45:09Z")

</div>

Yes I get 0xc0000135 printed out by `ctest` without any options and the test fails. However I (or more importantly the user) doesn’t have any clue what that means or even so, what .dll is missing.

The popup dialog does tell what file is missing, but the popup doesn’t occur as noted above. Unless I run the .exe by hand without CTest.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [June 9, 2021, 10:26am UTC](https://discourse.cmake.org/t/ctest-interactive-debug-mode-not-allowing-error-dialog-on-windows/3526/4 "2021-06-09T10:26:33Z")

</div>

This sounds like a bug to me. Please file [an issue](https://gitlab.kitware.com/cmake/cmake/-/issues) about this.

---

<div class="post-metadata">

### Author: ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)
#### Post date: [June 9, 2021, 2:13pm UTC](https://discourse.cmake.org/t/ctest-interactive-debug-mode-not-allowing-error-dialog-on-windows/3526/5 "2021-06-09T14:13:08Z")

</div>

OK thanks I opened an issue [CTest: not opening popups on Windows error (#22287)](https://gitlab.kitware.com/cmake/cmake/-/issues/22287)

It was determined there that this is now the expected behavior, and I changed that issue to request updating ctest(1) docs to note this.

---

<div class="post-metadata">

### Author: ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)
#### Post date: [June 9, 2021, 8:45pm UTC](https://discourse.cmake.org/t/ctest-interactive-debug-mode-not-allowing-error-dialog-on-windows/3526/6 "2021-06-09T20:45:19Z")

</div>

This was handled by a documentation MR [Help: Document ctest(1) --interactive-debug-mode limitation (!6211) · Merge requests · CMake / CMake · GitLab (kitware.com)](https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6211) that notes popup error dialogs are not available since CMake 3.11
