I have a mixed C# and CLI C++ project that is throwing an exception from C++ on Windows XP test machines. I’m wondering if anyone knows of a light tool (short of installing Visual Studio itself) that I could install on the test machine to identify the location of the exception.
Thanks in advance
Install the Windows Debugger. It is free, and can be found at: http://msdn.microsoft.com/en-us/windows/hardware/gg463009.aspx
There are many sites and books detailing how to use Windows Debugger. Microsoft provides the following site for reference: http://msdn.microsoft.com/en-us/library/windows/hardware/ff551063(v=VS.85).aspx
http://windbg.info/doc/1-common-cmds.html has a list of common WinDbg commands.
It is very useful, can be installed on test machines, and can be used to read minidumps, unlike Visual Studio 2008 and older versions.
To generate a dump at any time, start task manager on the test machine, right click on the application you want a dump from, and select “Create Dump File”.
If you have a dump or minidump from your application, you can use the WinDbg.exe (Windows Debugger) to get a stack trace using the command “!analyze -v”.