查看源文件

Source Files 视图列出了项目中包含的所有源文件。如果无法进入指令,可以检查源文件是否确实是项目的一部分,或者是否在其他地方编译过。该视图显示了文件系统中每个文件的路径。

源文件视图

右键单击视图可选择以下操作:

默认情况下,Source Files 视图是隐藏的。要显示该视图,请在调试器工具栏Views 中选择该视图。

外部源代码

要使调试器能够进入代码并显示源代码,当使用的源代码树副本位置与构建库的位置不同时,可以在首选项>Debugger >General 中将源路径映射到目标路径。

调试器首选项中的常规选项卡

更多信息,请参阅源路径映射

另请参阅 "如何:调试"、"调试"、"调试器"和 "调试器"。

Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.