web icon indicating copy to clipboard operation
web copied to clipboard

Add page about debugging while using root and about using valgrind?

Open hageboeck opened this issue 4 years ago • 5 comments

  • In a C++ lecture, the question popped up that valgrind becomes impossible to use when somebody uses ROOT. People were not aware of valgrind --suppressions=$ROOTSYS/etc/valgrind-root.supp <program> A debugging / tooling page should be created.
  • On that page, one could also tell users how to start root in a debugger
    • Either in the same terminal
    • Or to show the trick with starting a root prompt and attaching with gdb from another terminal.

hageboeck avatar Jan 20 '21 10:01 hageboeck

Good start: Copy this to a new webpage with proper formatting.

hageboeck avatar Jan 20 '21 15:01 hageboeck

Copy

We've been there in the past - having two copies means being out of date and out of sync sooner than later :-) Would linking the HowTo section from root.cern work?

Axel-Naumann avatar Jan 20 '21 16:01 Axel-Naumann

The HowTo section of the forum is already mentioned in the TOC of the manual: https://root.cern/manual/ Does this HowTo needs a more visibility ? We do not have a page about "debugging ROOT" right now in the web site. May be this HowTo is enough ?

couet avatar Jan 26 '21 13:01 couet

Clearly not enough:

  • https://duckduckgo.com/?q=cern+root+attach+debugger
  • https://www.google.com/search?q=cern+root+attach+debugger&oq=cern+root+attach+debugger

hageboeck avatar Jan 27 '21 13:01 hageboeck

I think it could be also really helpful to mention in the website (or in the HowTo forum post) examples on how to use interactive debuggers with ROOT, like for example QtCreator, which easily allows you to run gdb or valgrind and at the same time lets you put breakpoints and pause/resume your debugging session. If the devs consider it interesting, I can take care of the QtCreator part with some screenshots. Maybe someone else can do the same with CLion or Visual Studio.

EDIT: is now https://root.cern/blog/code-horsepower-f1/

ferdymercury avatar Sep 01 '21 16:09 ferdymercury