LArSoft / larsoft

This code is part of the Liquid Argon Software (LArSoft) project. It contains simulation and reconstruction algorithms for LAr TPC detectors. If you have a problem, please log a redmine issue: https://cdcvs.fnal.gov/redmine/projects/larsoft/issues/new
Other
8 stars 15 forks source link

A better support of LArSoft in gdb #24

Open gennadiy-fnal opened 1 month ago

gennadiy-fnal commented 1 month ago

We (Icarus and SBND) need a couple of features added to LArSoft, primarily to speed up the debugging of LArSoft packages deployed with Spack using gdb:

  1. an automated way to remap paths of the compiled source code to the actual location of installed sources, e.g. using the set substitute-path "{from_path}" "{to_path}" command, so GDB displays source code in the TUI window.

  2. gdb macros for printing a nice summary about an art event, such as its number, list of products and their IDs, etc. This would really help with debugging the experiment's analyzer code.

  3. an option to include gdb as a dependency for the art product suite, e.g. '+gdb', with TUI and DAP features enabled.

  4. a tutorial on how to use these features effectively.

knoepfel commented 2 weeks ago

Hi @gennadiy-fnal, thank you for the note. Such facilities would be helpful, but right now the SciSoft team does not have the effort to provide them. As always, we invite contributions from others who have the time and interest to pursue such ideas.