Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to see Valgrind analyzer command line in QTCreator



  • Hi.

    I am using the "Valgrind Memory Analyzer" tool of QTCreator and I would like to see the exact valgrind command that is being run whenever I use this tool.
    Is there a place to see all the commands printed or something like that? I did not manage to find such a thing. I would expect to see it around the "Application Output, General Messages...." toolbar, but couldn't find this.

    Thank you in advance



  • @galb1994
    When you run it it's shown in the Application Output pane at the bottom, like:

    valgrind --child-silent-after-fork=yes --xml-socket=127.0.0.1:34471 --log-socket=127.0.0.1:46091 --xml=yes --smc-check=stack --tool=memcheck --gen-suppressions=all --track-origins=yes --leak-check=summary --num-callers=25 /home/jon/AtH/debug/AtH
    


  • HI @JonB, thank you for your response.
    Can it be that this is some matter of "verbosity" in QTCrator that I can set? Because under Application Output, the only message I see that is related to the Valgrind run is:
    Analyzing memory of <program name>
    ...
    Analyzing finished.

    Thanks



  • @galb1994
    I believe everything of mine in Creator is on whatever the defaults are. I do assume you are Linux and not Win/Mac? I will be on whatever Creator comes with Ubuntu 20.04 apt-get (unless I fetch it myself, I forget).