Fix DBG_PRINTEXCEPTION_C (0X40010006) Printer Error
This is a debugger notification, not a real printer error. It means a process got Ctrl+C while debugging. Usually harmless, but can cause print job hangs.
Quick answer: Restart the Print Spooler service, clear stuck print jobs, and stop any debugger that's attached to the print process. The error's not a hardware failure—it's a debug notification that got logged as a crash.
You're seeing 0X40010006 because a debugger (like Visual Studio, WinDbg, or even a driver's internal debug logging) caught a Ctrl+C signal during a print operation. The DBG_PRINTEXCEPTION_C code means the debugger printed the exception to its console. It's not a printer fault—it's a development artifact that shows up in event logs or error dialogs when something attached to the spooler or a printer driver got interrupted. This almost always happens when you're running a debug build of a driver, using a printer utility with debug logging enabled, or when a third-party antivirus hooks into the printing stack and the user hits Cancel. The real problem is the stuck job or spooler hang that follows.
Step-by-Step Fix
- Kill any debugger attached to the print process. Open Task Manager, look for processes like
devenv.exe,windbg.exe, orvsdebug.exe. End them. If you're not sure, check the Details tab for anything with “Debug” in the name. - Restart the Print Spooler. Open Services (run
services.msc), find Print Spooler, right-click, select Stop. Wait 10 seconds, then Start it. - Clear stuck print jobs. Open a command prompt as admin and run:
This deletes every pending print job. Any half-printed docs will be gone.net stop spooler del /Q /F %systemroot%\System32\spool\PRINTERS\* net start spooler - Restart the printer. Power-cycle the printer. Unplug it for 30 seconds, plug it back in.
- Test print. Send a test page from Devices and Printers → right-click your printer → Printer Properties → Print Test Page.
If the Error Persists
Try these in order:
- Disable debug logging in your printer driver. Check the driver's advanced settings tab for “Debug”, “Log”, or “Trace” options. Turn them off. On HP printers, it's often under Ports → Configure Port → SNMP Status → uncheck “Enable SNMP Status”. That's a common trigger.
- Run the printer troubleshooter. Go to Settings → Update & Security → Troubleshoot → Additional troubleshooters → Printer. It's not a silver bullet, but it clears corrupted registry entries sometimes.
- Reinstall the printer driver. Remove the printer from Devices and Printers. Delete the driver from Print Server Properties → Drivers tab. Reboot, then reinstall the latest driver from the manufacturer's site—not Windows Update.
- Check for antivirus interference. Temporarily disable real-time scanning and test a print. If it works, add an exception for the spooler folder (
C:\Windows\System32\spool).
Prevention Tips
Don't run debug builds of printer drivers on production machines. If you're a developer, detach the debugger before printing. For regular users, avoid using “Cancel” on print dialogs repeatedly—that's the Ctrl+C signal that triggers this. Use the spooler restart method instead. Also, keep your printer driver up to date—manufacturers fix these debug leaks in newer releases.
If you see this error repeatedly and you're not running any debugger, check for a faulty USB cable or a driver conflict. A fresh driver install usually resolves it for good.
Was this solution helpful?