Skip to content

Verify whether lldb or gdb are available (instead of bluntly failing) #3

@bittner

Description

@bittner

The current implementation assumes that lldb (on macOS) or gdb (on GNU/Linux) are installed. Thus, when they are not, execution fails with a stack trace and a rather cryptic error message.

It would be nice if django-sql-sniffer would instead verify whether the binary is available for execution and abort gracefully, ideally giving hints on how to resolve the situation.

Suggested Solution

$ django-sql-sniffer -p 12345 -t
ERROR: gdb, the GNU debugger, appears to be missing on your system. django-sql-sniffer relies on this tool.
Try `sudo apt-get install gdb` or `sudo dnf install gdb` to fix this problem. ABORTING.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions