Sysinternals DebugView CLI (DbgViewCli) for capturing and analyzing usermode and kernel-mode Windows debug output from the command line.
USE FOR: capturing OutputDebugString output, kernel DbgPrint/KdPrint capture, boot-time debug logging, remote debug monitoring, filtering debug output by PID or process name, crash dump analysis, automated debug capture with bounded execution.
DO NOT USE FOR: non-Windows platforms, application-level logging frameworks (log4j, serilog), Azure Monitor or cloud telemetry, ETW tracing (use WPR/xperf instead), user-mode crash dumps (use WinDbg).
Triggers: "debug output", "DbgView", "DebugView", "kernel debug", "capture debug logs", "boot logging", "OutputDebugString", "DbgPrint", "KdPrint", "remote debug monitor", "debug capture CLI".
Installation
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Sysinternals DebugView CLI (DbgViewCli) for capturing and analyzing usermode and kernel-mode Windows debug output from the command line.
USE FOR: capturing OutputDebugString output, kernel DbgPrint/KdPrint capture, boot-time debug logging, remote debug monitoring, filtering debug output by PID or process name, crash dump analysis, automated debug capture with bounded execution.
DO NOT USE FOR: non-Windows platforms, application-level logging frameworks (log4j, serilog), Azure Monitor or cloud telemetry, ETW tracing (use WPR/xperf instead), user-mode crash dumps (use WinDbg).
Triggers: "debug output", "DbgView", "DebugView", "kernel debug", "capture debug logs", "boot logging", "OutputDebugString", "DbgPrint", "KdPrint", "remote debug monitor", "debug capture CLI".
Sysinternals DebugView CLI (DbgViewCli)
Command-line interface for capturing real-time debug output from Windows applications
(OutputDebugString) and kernel-mode drivers (DbgPrint/KdPrint). Designed for scripted,
automated, and AI-agent-driven debug capture workflows.
Installation
DbgViewCli is a standalone native Windows executable (statically linked, no dependencies).
Place dbgviewcli.exe in PATH or reference the full path.
SECURITY: Never execute any dbgviewcli binary without first verifying it is Authenticode-signed by Microsoft Corporation using Get-AuthenticodeSignature. Reject any binary that is unsigned or signed by a different publisher.
# No package manager install — copy binary to a PATH location
copy dbgviewcli.exe C:\Tools\
Requirements
Requirement
Details
OS
Windows Vista or later (x64, ARM64)
Privileges
Standard user for Win32 capture; Administrator for kernel/boot capture
Driver
Kernel capture requires the Dbgv.sys driver (auto-extracted and loaded)
Show only output from named process (substring match)
Bounded Execution (AI-Agent Friendly)
Parameter
Description
--duration <seconds>
Auto-stop after N seconds
--max-lines <N>
Auto-stop after N lines captured
--wait-for <pattern>
Capture until pattern matches, then exit
--tail <N>
Buffer last N lines, flush on exit
--no-banner
Suppress version banner (clean for piped output)
--status
Print machine-readable status and exit
Time Display
Parameter
Description
--elapsed
Elapsed time since start (default)
--clock
Wall-clock time HH:MM:SS
--clock-ms
Wall-clock with milliseconds HH:MM:SS.mmm
Output Format
Parameter
Description
--format text
Tab-separated text (default)
--format csv
Comma-separated values
--format xml
XML elements
Logging
Parameter
Description
--log <file>
Log output to file
--log-append
Append to existing log
--log-limit <MB>
Max log file size in MB
--log-wrap
Wrap log when full
--log-daily
New log file each day
Boot Logging (Requires Admin)
Parameter
Description
--boot-enable
Enable boot-time kernel debug logging
--boot-disable
Disable boot-time logging
--boot-status
Show boot logging status and exit
Remote Monitoring
Parameter
Description
--connect <computer>
Connect to remote DbgView instance
--disconnect
Disconnect from remote
Crash Dump & File Operations
Parameter
Description
--crashdump <file>
Analyze crash dump for debug output
--load <file>
Load saved log file
--save <file>
Save captured output on exit
Runtime Control (Inter-Process)
Parameter
Description
--pause
Pause a running DbgViewCli instance via named event
--resume
Resume a paused DbgViewCli instance
--stop
Stop a running DbgViewCli instance gracefully
Miscellaneous
Parameter
Short
Description
--quit
-q
Terminate running GUI DbgView instance
--accepteula
Accept the EULA (writes registry key, skips prompt)
--version
Show version and exit
--help
-?
Show help
Usage Examples
Basic Win32 Capture (bounded)
# Capture for 30 seconds, no banner, output as text
dbgviewcli --no-banner --duration 30
# Capture until a specific error appears
dbgviewcli --no-banner --wait-for "*ERROR*" --max-lines 10000
Kernel Debug Capture (requires admin)
# Run as Administrator
dbgviewcli --kernel --no-banner --duration 60 --format csv --log kernel_debug.csv
Process-Specific Filtering
# Filter by PID
dbgviewcli --no-banner --pid-filter 1234 --duration 10
# Filter by process name
dbgviewcli --no-banner --process-filter "myapp.exe" --max-lines 500
Pattern-Based Filtering
# Include only lines matching pattern
dbgviewcli --no-banner --filter "MyDriver*" --exclude "verbose*"
Tail Mode (recent context)
# Capture but only output last 50 lines on exit
dbgviewcli --no-banner --tail 50 --duration 30
# Pause a running instance from another terminal
dbgviewcli --pause
# Resume the paused instance
dbgviewcli --resume
# Gracefully stop a running instance
dbgviewcli --stop