开发者

Can I specify other source directories in Xcode preferences such that gdb will use them for find sources?

I know about specifying source locations using gdb. But I am wondering if there's someplace开发者_StackOverflow社区 in my Xcode project or other settings where I can specify source directories such that gdb would use whatever I specify to look for sources. If I could put them in Xcode settings I think it would help me save them in a central place.


You shouldn't need to - if the sources are part of your project and are used to build your executable, and so long as you are generating debug symbols, then gdb should be able to find the source files. The only time I can think of that this might fail is if you build on one machine and then try to debug on another, where the paths to the source files are different.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜