How airaccelerate/cli-debugger works
cli-debugger is a native Windows command-line debugger for x64 and x86 processes. The main workflow is user commands or batch input → argument parsing → launch/attach → debugger event and command handling → inspection, execution control, or instrumentation of the target. The graph includes documented reverse-engineering features and the x86 disassembler. The excerpts and index establish the main entry points and several module references; feature-level links rely on README descriptions where implementation was not sampled.
Main entry points: debugger_commands.cpp Command interpreter · argument_parser.cpp Argument parser · debugger_events.cpp x86 debugger runtime · main.cpp x64 entry point
Components 22
CLI interaction
- Argument parser
cli-debugger/cli/argument_parser.cpp - x64 entry point
cli-debugger/main.cpp - x86 entry point
cli-debugger32/main.cpp - Command interpreter
cli-debugger/debugger/debugger_commands.cpp
Debug runtime
- Launch and attach
cli-debugger/debugger/debugger_lifecycle.cpp - Event loop
cli-debugger/debugger/debugger_events.cpp - Breakpoints
cli-debugger/debugger/debugger_breakpoints.cpp - Memory operations
cli-debugger/debugger/debugger_memory.cpp - Registers and context
cli-debugger/debugger/debugger_registers.cpp
Inspection and unpacking
- Symbols and modules
cli-debugger/debugger/debugger_symbols.cpp - Debug inspection
cli-debugger/debugger/debugger_print.cpp - Dump and rebuild
cli-debugger/debugger/debugger_dump.cpp - PE image support
cli-debugger/pe/pe_image.c - x64 disassembler
cli-debugger/disasm/x64_disassembler.cpp
Instrumentation and capture
- API emulation and guards
cli-debugger/debugger/debugger_api_emulation.cpp - API hooks
cli-debugger/debugger/debugger_hooks.cpp - Network capture
cli-debugger/debugger/debugger_net.cpp - Debuggee stdio pipes
cli-debugger/debugger/pipes.cpp
Architecture support
- x86 debugger runtime
cli-debugger32/debugger/debugger_events.cpp - x86 disassembler
cli-debugger32/disasm/x86_disassembler.cpp
Other components
- Debugger user
- Debuggee process
Connections 24
- Debugger user → Argument parser: provides options
README.md - Debugger user → Command interpreter: enters commands
README.md - Argument parser → x64 entry point: parses arguments
cli-debugger/main.cpp - Argument parser → x86 entry point: parses arguments
cli-debugger32/main.cpp - x64 entry point → Launch and attach: starts debugger
cli-debugger/main.cpp - x86 entry point → x86 debugger runtime: starts debugger
cli-debugger32/main.cpp - Launch and attach → Debuggee process: launches or attaches
README.md - Command interpreter → Event loop: controls execution
README.md - Event loop → Breakpoints: handles stops
README.md - Command interpreter → Breakpoints: sets breakpoints
README.md - Command interpreter → Memory operations: reads and writes
README.md - Command interpreter → Registers and context: views and sets
README.md - Command interpreter → Debug inspection: requests inspection
README.md - Command interpreter → Symbols and modules: resolves symbols
README.md - Debug inspection → x64 disassembler: disassembles code
- Command interpreter → Dump and rebuild: requests dumps
README.md - Dump and rebuild → PE image support: rebuilds image
README.md - Command interpreter → API emulation and guards: configures bypasses
README.md - Command interpreter → API hooks: configures logging
README.md - Command interpreter → Network capture: configures capture
README.md - Debuggee process → Network capture: sends captured traffic
README.md - Debuggee process → Debuggee stdio pipes: exchanges stdio
README.md - Command interpreter → x86 debugger runtime: controls x86 target
- x86 debugger runtime → x86 disassembler: disassembles code