Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions script/install.d/15-debug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash

# -----------------------------------------------------------------------------
# Description:
# Install debugging tools.
#

# Install GDB for C++ debugging
if ! command -v gdb &>/dev/null; then
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
sudo apt-get install -qq gdb
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew install gdb
fi
fi

if command -v gdb &>/dev/null; then
gdb --version | head -n 1
else
echo -e "${YELLOW}GDB not available${NC}"
fi

# Note: PDB (Python debugger) is built into Python and doesn't require separate installation
if command -v python3 &>/dev/null; then
python3 -c "import pdb; print('PDB (Python debugger) is available as built-in module')"
else
echo -e "${YELLOW}Python not available for PDB${NC}"
fi
2 changes: 2 additions & 0 deletions tests/test_binaries.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def in_shell_path(shell: Text, binary: Text) -> bool:
"neofetch",
"redis-cli",
"redis-server",
# debugging tools
"gdb",
# language: python
"pyenv",
"python",
Expand Down