Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Troubleshooting

Common issues and solutions for using debtmap effectively.

Getting Started with Troubleshooting

When you encounter an issue with debtmap, start with these steps:

  1. Try a quick fix - See Quick Fixes for common problems and immediate solutions
  2. Enable debug mode - Use -v, -vv, or -vvv for increasing levels of detail
  3. Check error messages - See Error Messages Reference for explanations
  4. Review your configuration - Check .debtmap/config.toml for any settings that might cause issues

Subsections

This chapter is organized into focused troubleshooting topics:

Common Problem Categories

Analysis Problems

Coverage and Context Problems

Output Problems

Detection Problems

Diagnostic Commands

Basic Diagnostics

# Check version
debtmap --version

# Run with basic verbosity
debtmap analyze . -v

# Run with detailed output
debtmap analyze . -vv

# Run with full debug output
debtmap analyze . -vvv

Coverage Diagnostics

# Debug coverage matching for a function
debtmap explain-coverage . \
  --coverage-file coverage.lcov \
  --function "function_name" \
  -v

Performance Diagnostics

# Time the analysis
time debtmap analyze .

# Profile with verbosity
debtmap analyze . -vv 2>&1 | grep "processed in"

When to File Bug Reports

File a bug report when:

  • Parse errors on valid syntax
  • Crashes or panics
  • Incorrect complexity calculations
  • Concurrency errors
  • Incorrect error messages

Before filing:

  1. Check this troubleshooting guide
  2. Try --semantic-off fallback mode
  3. Update to the latest version
  4. Search existing issues on GitHub

See FAQ for detailed guidance.