microsoftfeedback / WinDbg-Feedback

Public issue and feedback tracking for WinDbg Preview.
Creative Commons Attribution 4.0 International
49 stars 12 forks source link

Support opening C# source files in postmortem debugging #87

Open cerrv opened 1 year ago

cerrv commented 1 year ago

provide a new command in sos or windbg to open managed source files by passing module and method name or code/ip address.

TimMisiak commented 1 year ago

".open -a module!class.function" does this, although the beginning of a function doesn't always seem to have a source mapping. Would be nice if there was an easy way to probe for the "next available source line" so you don't have to do something like .open -a ConsoleApp1!ConsoleApp1.Test.Foo+18 to get it to work.

cerrv commented 1 year ago

Did not work. “.open -a” takes a native image address.

ronvgs commented 5 months ago

@emmasab Do we have any updates on this?