Add page about debugging while using root and about using valgrind?
- 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.
Good start: Copy this to a new webpage with proper formatting.
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?
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 ?
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
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/