Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jun 5, 2025

This PR adds installation support for debugging tools as requested in the issue:

Changes Made

GDB (GNU Debugger) for C++:

  • Created script/install.d/15-debug.sh that automatically installs GDB
  • Supports cross-platform installation via apt (Linux) and brew (macOS)
  • Only installs if GDB is not already present on the system
  • Reports GDB version after successful installation/detection

PDB (Python Debugger):

  • Verified PDB availability as Python built-in module (no separate installation needed)
  • Script confirms PDB is accessible and documents this fact
  • No additional installation required since it's part of Python standard library

Testing Integration:

  • Added gdb to the binary test suite in tests/test_binaries.py
  • Ensures GDB is properly detected in PATH after installation
  • Follows existing test patterns for binary verification

Usage

The debugging tools can be installed by running:

./script/install 15-debug

Or as part of the full installation:

./script/install

The script provides informative output:

GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) 15.0.50.20240403-git
PDB (Python debugger) is available as built-in module

Implementation Details

  • Follows existing repository patterns for cross-platform package installation
  • Uses conditional installation to avoid unnecessary operations
  • Minimal changes with only 2 files modified/added
  • Properly handles cases where tools are already installed or dependencies are missing

Fixes #8.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Debugging Install debugging tools: GDB for C++ and PDB for Python Jun 5, 2025
Copilot AI requested a review from andrejusk June 5, 2025 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debugging

2 participants