George2
George2

Reputation: 45801

find source code matched with machine address

I'm debugging a crash dump and I am clear at which address the process crashes. The source code is written in C#. My question is any quick way to find the matched source code related to the crash address?

Upvotes: 0

Views: 753

Answers (3)

ShuggyCoUk
ShuggyCoUk

Reputation: 36476

this blog is a mine of useful information on crash dump analysis.

Here's where it starts on debugging a managed app's crash dump it is worth noting that it refers back to previous articles and assumes you have read and understood them. It also assumes you a slightly familiar with Son of Strike, an incredibly useful but somewhat arcane debugging extension for working with managed code.

Upvotes: 0

Richard
Richard

Reputation: 109140

You need the symbol files (.pdb) from the build.

Also enable use of MS' symbol server so VS and WinDBG will automatically get the correct symbol files.

Upvotes: 0

Lee B
Lee B

Reputation: 2157

Any decent IDE that includes a debugger will do this automatically. Otherwise, you typically need to build your project with debugging information (debug symbols) enabled (which isn't recommended for production, as it makes your program bigger and easier to reverse engineer), and debugger commands like where or trace will list the program lines you're at.

Upvotes: 0

Related Questions