1 year ago
#379779

Logicrat
Trying to use MSVC to attach to Inno-Setup process to debug a DLL
I'm happy with the Pascal script I have in Inno Setup. My setup script calls some entry points in a DLL I wrote in C++ using MSVC 2010. I'm trying to use the MSVC debugger to step thru my C++ code in the DLL.
So, I launch MSVC in Administrator mode, and in Inno Setup I run my installer until Inno Setup hits a breakpoint in my Pascal code. Then, in MSVC, from the Debug menu I use "Attach Process..." to attach the MSVC debugger to the relevant process in Inno Setup, and set breakpoints. I find four relevant processes, two requiring Administrator privilege and two others. I attach all four.
This is where things go wonky. Even with the processes attached, my breakpoints in the C++ DLL code all turn into empty circles, and sure enough, they are never hit even when I use Inno Setup's debugger to step over or into a call to my DLL. So, what am I doing wrong here? I just want the MSVC debugger to hit a breakpoint in my DLL.
Two of the four relevant processes have ".exe" extension and two have ".tmp". I probably only need one but I'm not sure which.
c++
visual-studio-2010
inno-setup
0 Answers
Your Answer