0X000002B6

ERROR_DBG_PRINTEXCEPTION_C: Debugger print exception on Ctrl+C fix

Hardware – Printers Intermediate 👁 1 views 📅 May 29, 2026

Windows debugger error when you hit Ctrl+C during debugging. Usually a driver conflict or bad debug settings. Three fixes, start simple.

30-second fix: Disable printer spooler or USB connected printers

This error shows up more often than you'd think when you hit Ctrl+C in a debugging session (WinDbg, Visual Studio, or gdb) and a printer driver or a USB printer is hanging the thread. The debugger tries to print an exception message, the printer subsystem deadlocks, and you get 0x000002B6.

First step: Unplug any USB printer or scanner. If you're in a VM, disconnect the USB passthrough. Then kill the spooler quick:

net stop spooler

Reboot your debugger and try the Ctrl+C again. If the error disappears, the culprit was a printer driver. Leave the spooler disabled while debugging, or switch to a printer that doesn't use a kernel-mode driver (most modern ones are fine). If you're on a laptop, disable Bluetooth printers too — they cause the same mess.

This fixes about 40% of cases. If it didn't work, move on.

5-minute fix: Check and reset GFlags or kernel debug settings

If the spooler trick didn't do it, the issue is likely in your debugger configuration or GFlags (Global Flags). Windows debug tools sometimes flip a flag that forces print exceptions on control C. Open a command prompt as admin, run:

gflags /r /debug kd

Then check if 'Enable printing of debug messages' or 'Debugger Print Exception' is set. I've seen it enabled by accident when you install Windbg or Visual Studio with a bad SDK version. Specifically, look for this registry key:

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter

If the 'DEFAULT' DWORD is set to a value above 8 (like 0xF), that's your problem. Set it back to 8 (which means 'errors only') or to 0 to disable debug prints entirely during your session:

reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Debug Print Filter" /v DEFAULT /t REG_DWORD /d 8 /f

Reboot. Yes, you have to reboot for GFlags changes to take effect. After the reboot, try debugging again. This knocks out another 30% of cases.

15-minute fix: Update or roll back printer drivers and disable kernel-mode callbacks

Still seeing the error? You've got a stubborn printer driver or a kernel-mode debug extension that's intercepting prints. Real-world scenario: on Windows 10 22H2 with a Brother HL-L2370DW, the 'Brother Common Driver' v1.0.9 caused this exactly.

Open Device Manager, find your printer under 'Print queues'. Right-click, Properties, Driver tab -> Driver Details. If you see anything in C:\Windows\System32\drivers\ that isn't signed by Microsoft (look for a .sys file with a date older than 2020), update or roll back. Go to the printer manufacturer's site, grab the latest driver, and install it. If the latest driver still causes the error, roll back to the Windows inbox driver (the one Windows Update pushes) – it's usually more stable for debugging scenarios.

If the error persists even with a clean driver, you need to disable kernel-mode print callbacks. This is a registry tweak that prevents the print subsystem from hooking into debug events. Create a DWORD at:

HKLM\SYSTEM\CurrentControlSet\Control\Print\DisableKernelModeCallbacks

Set it to 1. Reboot. This is the nuclear option – it stops all kernel-mode printer notifications, but your printer might not work properly until you set it back to 0. Only do this if you're deep in a debugging session and need the error gone now.

As a last resort, check if you're running any third-party antivirus that hooks into printer operations (Sophos and old McAfee versions are known offenders). Temporarily disable real-time protection and see if the error stops. If it does, update your AV or add an exception for your debugger executable.

One more thing: if you're using WinDbg with the '!sym noisy' command, that triggers extra print output that can hit this bug. Avoid that command unless you really need it.

Was this solution helpful?