From 638955a041138b98d993156b2bd29aa7e697a58b Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Mon, 2 Jan 2023 14:25:49 +0100 Subject: [PATCH] Use CDB Debugger https://ten0s.github.io/blog/2022/07/01/debugging-dll-loading-errors --- .github/workflows/windows.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index e8391d57..4f21a712 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -42,6 +42,7 @@ jobs: run: | python3 -m pip install -U pip setuptools wheel pytest python3 -m pip install -U cmake + (Get-Command ctest).Path cmake -S . -B build ` -T "ClangCl" ` @@ -60,11 +61,13 @@ jobs: cmake --build build --config Debug --target pip_install if(!$?) { Exit $LASTEXITCODE } - llvm-objdump -p C:/Program Files (x86)/pyAMReX/bin/amrex.dll + llvm-objdump -p "C:\Program Files (x86)\pyAMReX\bin\amrex.dll" - Get-Childitem -Path C:\* -Recurse -Filter *python311.dll, *amrex.dll, *MSVCP140D.dll, KERNEL32.dll, VCRUNTIME140D.dll, VCRUNTIME140_1D.dll, ucrtbased.dll + Get-Childitem -Path C:\* -Recurse -Filter "*python311.dll, *amrex.dll, *MSVCP140D.dll, KERNEL32.dll, VCRUNTIME140D.dll, VCRUNTIME140_1D.dll, ucrtbased.dll" - name: Unit tests run: | set PATH="C:/Program Files (x86)/pyAMReX/bin/;%PATH%" - ctest --test-dir build -C Debug --output-on-failure + (Get-Command ctest).Path + gflags /i APP.exe +sls + cdb -c "g;q" ctest --test-dir build -C Debug --output-on-failure