• greggm's WebLog

    Hints for the native debugger’s expression evaluator

    • 4 Comments
    This is a list of a few hints for using the native debugger's expression evaluator. These are documented elsewhere, but I have run into a fair number of people that don't know about them. Format specifiers. These are expression suffixes that alter the...
  • greggm's WebLog

    Debugging virtual memory problems

    • 4 Comments
    Today I looked at a virtual memory usage bug. I determined that the function to set a breakpoint on is {,,ntdll}_ZwAllocateVirtualMemory@24. This function is called by the heap APIs, and by the VirtualAlloc APIs.
  • greggm's WebLog

    Bad Native Callstacks

    • 1 Comments
    On Friday, a coworker emailed me a callstack that looked wrong. I sat down and looked at it. It turned out that the callstack was actually correct. Afterwards, I decided that it was time for a blog about bad native callstacks. Times when the debugger...
  • greggm's WebLog

    Programs and the Visual Studio.NET Debugger

    • 2 Comments
    The Visual Studio .NET debugger supports debugging multiple types of code running in the same process. This is an important feature, and implementing it required huge changes in how the debugger works. Unfortunately, a bit too much of the implementation...
  • greggm's WebLog

    How to find the owner of a critical section

    • 4 Comments
    Many times in my life I have needed to debug a deadlock. You have one thread trying to acquire a critical section, and it can be a pain to determine which thread has it. Setup: Go get OS Symbols. Having OS symbols is a must, and will make your life...
  • greggm's WebLog

    Properties and debugging

    • 9 Comments
    As I am sure everyone reading this article knows, the CLR support 'properties', which is a way of making function calls look like a variable read or write. These have some problems for debuggers, mostly because in order to evaluate a property, the debugger...
  • greggm's WebLog

    Other debugger blogs

    • 1 Comments
    A few of my coworkers also started blogs this week: http://blogs.msdn.com/andypennell http://blogs.msdn.com/stevejs If anyone else has a debugger related blog, please add it to the comments.
  • greggm's WebLog

    Why interop debugging is difficult

    • 12 Comments
    The Visual Studio debugger supports debugging both .NET code and native code at the same time. We call this ‘interop’. At first glance, this might not seem like much of an accomplishment. After all, we support debugging .NET code well enough...
  • greggm's WebLog

    Page fault notes

    • 1 Comments
    I have been doing some page fault analysis lately, and I decided to share what I have learned. First, there are two basic types of page faults -- soft faults and hard faults. A hard fault is a true page fault where the operating system needs to...
  • greggm's WebLog

    Improving speed while running under the debugger

    • 0 Comments
    If stepping in the debugger is taking too long, here are a few suggestions on improving your experience: Close any Windows that you don't need. The modules Window and disassembly Window are good candidates if you have them open. If you are 'mixed...
  • greggm's WebLog

    Whitepaper: How to solve debugger problems

    • 0 Comments
    A coworker maintains a FAQ for some of the most frequent 7.0/7.1 debugger problems. http://www.gotdotnet.com/team/csharp/learn/whitepapers/howtosolvedebuggerproblems.doc
  • greggm's WebLog

    chkstk

    • 1 Comments
    A while back, I found a problem where I was getting a stack overflow exception inside of chkstk. Chkstk is a crt function and can probably be found in every dll. In my case the crash didn't make sense because I clearly had plenty of stack space left....
  • greggm's WebLog

    What does working set tell you?

    • 0 Comments
    Recently, I have been looking at memory usage. Up until this point, I have been using working set to tell me how much physical memory a process is using. It turns out that this definition is wrong. Working set actually tells you how many virtual pages...
  • greggm's WebLog

    Introductions...

    • 4 Comments
    My name is Gregg Miskelly. I am a developer on the Visual Studio team working on the debugger. I decided to start a blog because I couldn’t find any other blog that talked about Debuggers. I will probably also talk a bit about performance, since...
Page 5 of 5 (114 items) 12345