Trying to debug Windows Store App from dump files

ok, with the help of the Windbg Extension PDE.dll from Andrew Richards, I see that your application crashes because of an not handled System.UnauthorizedAccessException. I used !PDE.dpx -dse to shows all Stowed Exceptions (those 0xC000027B exceptions): 0:006> !PDE.dpx -dse Start memory scan : 0x0551fc7c ($csp) End memory scan : 0x05520000 (User Stack Base) 0x0551fc94 : … Read more

How to tell if a .NET application was compiled in DEBUG or RELEASE mode?

I blogged this a long time ago, and I don’t know if it still valid or not, but the code is something like… private void testfile(string file) { if(isAssemblyDebugBuild(file)) { MessageBox.Show(String.Format(“{0} seems to be a debug build”,file)); } else { MessageBox.Show(String.Format(“{0} seems to be a release build”,file)); } } private bool isAssemblyDebugBuild(string filename) { return … Read more

How can I tell if a library was compiled with -g?

If you’re running on Linux, use objdump –debugging. There should be an entry for each object file in the library. For object files without debugging symbols, you’ll see something like: objdump –debugging libvoidincr.a In archive libvoidincr.a: voidincr.o: file format elf64-x86-64 If there are debugging symbols, the output will be much more verbose.