Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hageboeck opened this issue Jan 20, 2021 · 5 comments
Open
Assignees

Comments

@hageboeck
Copy link
Member

  • 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
Copy link
Member Author

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

@Axel-Naumann
Copy link
Member

Axel-Naumann commented Jan 20, 2021

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?

@couet
Copy link
Member

couet commented Jan 26, 2021

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 ?

@ferdymercury
Copy link
Contributor

ferdymercury commented Sep 1, 2021

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants