Sorry for creating another topic. Question from the title. Will ROOT be slower if I compile it from source with the Debug option, compared to the precompiled binary that I can find on the website? If yes, is there a way to let both coexist and run one or the other selectively (I would run the one with the Debug option if I need to inspect TObjects while debugging, and the default one otherwise)?
When you compile a program in debug mode it is always slower that an optimized version. You can install/compile a debug version (from source) and switch form a version to an other using:
Hi @renyhp,
mainly what thisroot.sh does it to set some environment variables in the shell/session from which it’s is sourced (namely PATH, LD_LIBRARY_PATH and a few others). So you can source two different ROOT versions from two different terminals and run them concurrently without a problem.
EDIT: Nevermind, I should have tried before posting instead of the other way around. Sorry for pinging.
What I’m really trying to do is getting VSCode to call the debug version of ROOT properly, and using the optimized version for any other case. I have opened an issue on the vscode github but I still can’t manage to do that. Maybe I’ll compile root with the RelWithDebugInfo configuration and use that one for both debugging and running.