
The Old New Thing - devblogs.microsoft.com
6 days ago · The Old New Thing Practical development throughout the evolution of Windows.
Does DebugBreak work to launch the debugger, or doesn’t it?
May 29, 2017 · The DebugBreak function is not a “Launch the just-in-time debugger” function. It’s a very specific kind of “try to crash the program” function that debuggers understand and intercept.
Tricks from product support: We're not smart enough to debug the ...
Dec 3, 2024 · We are trying to debug the problem in our software, and we fully acknowledge that it’s a problem in our software, but we’re not smart enough to do it while that other software is running, so …
Windows debugger trick: Breaking when a specific debugger message …
Apr 3, 2024 · In the Windows debugging engine, the sx command configures many of the conditions under which the debugger will break. To enable a break condition, you say sxecond, and the …
The case of the critical section that let multiple threads enter a ...
Mar 21, 2025 · One of my colleagues in enterprise product support runs a weekly debug talk consisting of a walkthrough of a debug session. Usually, the debug session comes to a conclusion, but one …
Debugger breakpoints are usually implemented by patching the in …
Nov 11, 2024 · The code in memory may not match what the debugger shows you if the debugger is itself is doing the changing.
How can I find out which process has locked me out of the clipboard ...
Apr 10, 2024 · Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his …
Before you try to change something, make sure you can change nothing
May 13, 2024 · Some time ago, I recommended that before you try to do something, you should make sure you can do nothing. There’s a variation of this maxim when you are adding code to an existing …
Using type aliasing to avoid the ODR problem with conditional ...
May 2, 2025 · We can follow the same basic pattern, but instead of allowing the debug and non-debug versions to coexist, we can simply prohibit them from coexisting. First, let’s isolate the two versions …
In C++, failure to meet the requirements does not always mean that …
Dec 27, 2024 · I was asked to help debug a problem where a pointer passed to a function was received slightly offset from the original value. The pointer is passed as an opaque parameter and is …