Is it possible to use windbg commands like !locks
and .loadby sos mscorwks
from the Visual Studio command window (in a debug session)? I've noticed I can use eg k
to print a stack trace, so I was wondering if there is some way to get access to the other commands.
WinDbg uses the Microsoft Visual Studio debug symbol formats for source-level debugging.
On the remote computer, open WinDbg, and choose Connect to Remote Session from the File menu. Under Connection String, enter the following string. where YourHostComputer is the name of your host computer, which is running the debugging server. Select OK.
The WinDbg Preview debugger is available in the Microsoft Store. It requires Windows 10 Anniversary Update to install. To install it, open the Microsoft Store and search for "WinDbg Preview", or use the following link to navigate directly to WinDbg Preview. Once the app is a located, select it to download and install.
Yes you can do this.
!load sos
!EEHeap,!DumpHeap
There are some conditions. You need to enable unmanaged code debugging in your project properties. Normally in 64 bit version studio doesn't support this.
Have fun.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With