Skip to content

Preset breakpoints in per project .bashdbrc #67

@schnell18

Description

@schnell18

The bashdb is definitely an awesome gdb-like terminal debugger with rich features such as syntax hightlighting, variable watch. However, it lacks the feature to preset breakpoints in a per-project file like pdb. Enabling such feature will be tremendously useful to trouble shoot complex bash projects where locating the right lines of code for debugging is non-trivial task. This issue proposes the preset breakpoints in a file named .bashdbrc with statements similar to the Python's pdb:

# b awq/quantize/quantizer.py:156
# b awq/quantize/quantizer.py:339
b /home/user/work/AutoAWQ/awq/quantize/quantizer.py:117

The .bashdbrc should allow user to:

  • leave comments to note reason for configuration change
  • set line based unconditional breakpoints
  • set conditional breakpoints with boolean expression at the end

Besides breakpoints, it would be nice to support additional settings in the .bashdbrc file. And a two-level .bashdbrc scheme could be adopted:

  • The ~/.bashdbrc stores common settings
  • The per project ./.bashdbrc overrides the per user settings

Thanks for considering this feature request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions