As promised, this post will present the results of my investigation into the performance impact of running under the simplest possible debugger written using MDbgEngine.
(more…)
All posts for the month December, 2011
Performance impact of running under MDbgEngine
Posted by TripleEmcoder on December 18, 2011
https://tripleemcoder.com/2011/12/18/performance-impact-of-running-under-mdbgengine/
Accessing stack traces with MDbgEngine and PADRE
In my previous post, I showed how MDbgEngine (available on NuGet) can be used to stop a process when an exception is thrown, and how a minidump can then be created to enable post-mortem debugging.
Using MDbgEngine, you can do much, much more – and all with a very high-level API. (more…)
Posted by TripleEmcoder on December 11, 2011
https://tripleemcoder.com/2011/12/11/accessing-stack-traces-with-mdbgengine-and-padre/
Writing an automatic debugger in 15 minutes (yes, a debugger!)
Seriously, it will take you longer to read this long introduction, than to code a working debugger in C#.
You may also want to check out:
Bugs in production
Remember all those reports coming back form clients saying “hey, your program crashed” or “hey, your is site showing these ugly yellow pages at random moments”? So do I. Unfortunately, there isn’t much that can be done to diagnose problems in running software, basically we’re at the mercy of our clients’ reports (which vary in quality, most of the time tending towards useless) or more or less verbose logging. Having those, we can reproduce issues during a debugging session to see what code causes them. If that fails, we can go to the extremes of attaching a debugger in a production environment. Not feeling enough pressure today? Attach to a live site and try to setup breakpoints the exact way needed to only catch the error, and not stop a milion people from doing their daily work. At first try. Logging, on the other hand is very safe, it but will only tell you as much as you predicted that would be needed.
Now what if we could have something in the middle? More than logging, but less than an interactive debugging session?
(more…)
Posted by TripleEmcoder on December 10, 2011
https://tripleemcoder.com/2011/12/10/writing-an-automatic-debugger-in-15-minutes-yes-a-debugger/