-
July 1st, 2015, 11:37 AM
#1
windbg Windows 7 64-Bit / Visual Studio 2010 Ultimate
Can somebody weigh in here and tell me if they have experienced this?
Also please tell me what exactly they experience with VS2010 Ultimate
and Windbg.
I have a laptop I am supposed to be using to debug crash dumps.
windbg is not acting correctly. I decided to do a test and tried to just
debug a program, and although I can set a breakpoint, the debugger
does not stop on the breakpoint.
I know there is a problem with the Visual Studio 2010 runtime libraries and
windbg x64 / Windows SDK on Windows 7. The developer who gave me the
laptop said the development environment and windbg were installed correctly.
I doubt it.
Please give me a frame of reference here.
Thanks!
Last edited by ahoodin; July 1st, 2015 at 11:39 AM.
ahoodin
To keep the plot moving, that's why.
-
July 2nd, 2015, 04:24 AM
#2
Re: windbg Windows 7 64-Bit / Visual Studio 2010 Ultimate
"windbg is not acting correctly" - not too much informative. Did you set source, exe and .pdb directories in WinDbg? Is the program built with debug information? Do you have .pdb and source files on the computer? Do these .pdb files match the executable file? Did you enable Microsoft symbol server? Are you talking about kernel or user mode crash dumps?
Last edited by Alex F; July 2nd, 2015 at 04:28 AM.
-
July 2nd, 2015, 06:11 AM
#3
Re: windbg Windows 7 64-Bit / Visual Studio 2010 Ultimate
Originally Posted by Alex F
"windbg is not acting correctly" - not too much informative.
Sorry, When I run analyze -v the debugger is not coming up with address or the line of code with with the problem. In order to see whether my debugger was malfunctioning, I created a simple project with my compiler and attempted to step through it. I could place a breakpoint but windbg would not break.
Originally Posted by Alex F
"Did you set source, exe and .pdb directories in WinDbg? Is the program built with debug information?
Yes. Yes
Originally Posted by Alex F
Do you have .pdb and source files on the computer? Do these .pdb files match the executable file?
Yes
Originally Posted by Alex F
Did you enable Microsoft symbol server? Are you talking about kernel or user mode crash dumps?
Yes, in order to get the symbol server, I had to get the laptop internet access. The network settings were old, so originally it would not connect to the internet.
They are User Mode crash dumps. No device driver debugging going on here.
ahoodin
To keep the plot moving, that's why.
-
July 2nd, 2015, 08:38 AM
#4
Re: windbg Windows 7 64-Bit / Visual Studio 2010 Ultimate
There are many small details in post mortem debugging. First, how dump file is created? If you use MiniDumpWriteDump, dump type should be at least MiniDumpNormal for native application. Assuming that dump is OK, I suggest you to make the following tests:
1. Build the program on developer computer with Visual Studio, reproduce the crash and open crash dump in Visual Studio. This is easy, because Visual Studio debugger knows where is .exe, .pdb and source files. Usually such crush dump works without any efforts. Do the same with WinDbg.
2. Reproduce the crash on another computer, take the dump to the same computer where .exe was built, and open it with Visual Studio. At this stage you need Microsoft debugging symbols, because Windows where the program crashed may be different than Windows on developer computer. Note that .pdb files should be from the same build, and not just rebuilt from the same source.
During this debugging session, look at the Output window: all executable files (exe and dll) should be loaded with debugging symbols. If not - you have a problem.
3. Once Visual studio debugger works, try to do the same with WinDbg.
4. Take crash dump to another computer with Visual Studio (not the one where .exe was built). Open crash dump with Visual Studio.Now you need to have .exe, source and .pdb files available + Microsoft symbol server. Does it work?
4. Try WinDbg now.
5. Now make the same on your laptop, which only has WinDbg.
Last edited by Alex F; July 2nd, 2015 at 08:41 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|