Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
467 views
in Technique[技术] by (71.8m points)

c++ - What does Qt Creator `Separate debug info` means?

In Qt Creator, Tools, Options, Build & Run, Default Build Properties I can see

Separate debug info (Use Project Default/Enable/Disable)

What that means?

I was guessing it will put debug/release build on separate folders but that seems to happen anyway.

question from:https://stackoverflow.com/questions/66056801/what-does-qt-creator-separate-debug-info-means

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Separate debug info in Qt is typically used when you compile in Profile mode.

Profile mode in Qt is used mainly for analyzing your application and profiling it. This mode creates an optimized binary file (as in Release Mode) with debug symbols in a different file (Debug mode, however, puts the symbols in the same file). This allows you to analyze the optimized application. So, this option in Qt tells the compiler to generate debug symbols in a separate file.

Don't worry. Sometimes Qt Documentation is a little dense and does not explain things in detail. You'll get used to it. Here are some useful links for understanding this:

  1. How it works in gdb: https://guix.gnu.org/manual/en/html_node/Separate-Debug-Info.html
  2. Specifying debug settings in Qt: https://doc.qt.io/qtcreator/creator-build-settings.html
  3. Using performance analyzer in Qt: https://doc.qt.io/qtcreator/creator-cpu-usage-analyzer.html#using-the-performance-analyzer

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...