简体   繁体   中英

Enable Qt Creator to create core files when in run mode?

I am running a GUI program in Qt and whenever I exit the program the error message in the Qt Creator terminal is

"The program has unexpectedly finished. /.../../.. exited with code 0".

However when I run this same executable through the Linux terminal and exit the program I get a segfault(core dumped) and consequently a core file. I was wondering if it is possible to enable the creation of core files by running the program from Qt Creator (not in debug mode, just build and run mode)?

Creating core files depends on the operating system rather than a single program or some IDE. Try running

ulimit -c unlimited

on the shell before running qtcreator. Then you can try launch your program. If you need more details take a look at the man page of bash . Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM