Debugging Guide
Logging
Enable Debug Logging
# General debug logging
RUST_LOG=debug cargo run -- up
# Spuff-specific logging
RUST_LOG=spuff=debug cargo run -- status
# Trace level (very verbose)
RUST_LOG=spuff=trace cargo run -- up
# Multiple modules
RUST_LOG=spuff=debug,reqwest=debug cargo run -- upLog Levels
Level
Use Case
Adding Logs to Code
Debugging VM Bootstrap
Cloud-Init Logs
Bootstrap Status
Agent Logs
Debugging SSH Issues
Verbose SSH
Common SSH Issues
Debugging Provider API
Log API Requests
Inspect with curl
Debugging Local State
SQLite Inspection
Reset State
Debugging Agent
Local Agent Testing
Agent on VM
Debugging TUI
Disable TUI
TUI Fallback
IDE Debugging
VS Code (CodeLLDB)
RustRover/IntelliJ
Common Issues
"Device not configured" (TUI Error)
"Permission denied" on SSH
Instance Not Found
Cloud-Init Never Completes
Profiling
CPU Profiling
Memory Profiling
Useful Commands Cheatsheet
Last updated
Was this helpful?