Qt Creator Debugging: Start application with wrapper script
I am using Qt Creator on Fedora Linux 20. My application cannot be run directly, because I need to set up its environment first using a shell script. Consequently, I need to enter the location of the binary as well as the wrapper shell script in Qt Creator to be able to run and debug the application. Is that possible, and how do I do it?
Hi and welcome to devnet,
If it's a matter of environment variable setup, you can do it in the Run part of the project panel
I need a chroot, actually.
Are you calling
If so, you can add a custom executable where you call chroot with your application as parameter
That works for running the app but not for debugging it, as Qt does not pass the right symbol file to gdb. Chroot admittedly is quite a rare use case, so it is no problem that Qt Creator does not support it. I think I will opt for something like GVim + Conque GDB for now. Thanks a lot for your help, though!
You're welcome !
Might be rare but could be an interesting feature. You should check the "bug report system":http://bugreports.qt-project.org to see if anything like that has already been talked about. If not consider opening a new Feature Request :)