You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just cannot figure out how to do it in SharpDebug, well I know how to do it, but not how to do it with the API limitations.
There doesn't seem to be any API to switch the current context to the SharpDebug.DebugEventInfo.LastEvent
Basically change the context to the exception inside dbgeng, and then get stack from current active context (without setting context to thread again via the ThreadSwitcher)
This way works perfectly fine. But its quite a stupid solution.
The text was updated successfully, but these errors were encountered:
I have a exception on Thread 10320.
But when I just try to read the StackTrace from the thread I get pure garbage.
I can even reproduce this in WinDbg
Current thread is just garbage. But if I switch context to the exception and dump the StackTrace again
Everything works perfectly fine.
I just cannot figure out how to do it in SharpDebug, well I know how to do it, but not how to do it with the API limitations.
There doesn't seem to be any API to switch the current context to the
SharpDebug.DebugEventInfo.LastEvent
My hacky workaround is
SharpDebug/Source/SharpDebug.DbgEng/DbgEngDll.cs
Line 748 in 0a19533
Make a copy of this method and remove the thread switcher which would reset the context to the thread.
And then do a very hacky
Basically change the context to the exception inside dbgeng, and then get stack from current active context (without setting context to thread again via the ThreadSwitcher)
This way works perfectly fine. But its quite a stupid solution.
The text was updated successfully, but these errors were encountered: