简体   繁体   中英

How can Xcode debug files not in the working project

I'm using Unreal Engine to build a game, most parts are done in Visual Studio in windows, except build the iPhone release.

The Xcode project contains nothing but an Info.plist and the Game.app, which is build with external gcc & g++ commands. I can choose "Run without Building" in XCode to run and debug on real device.

As a result of that project structure, I cannot easily navigate between file, the only thing I found for now is click "Pause" in debugging window, then use "Step In", "Step Over" and "Step Out". There for I'm limited to where the app paused and related code.

I can set break points by clicking on line numbers, but gdb break command does not work. So I can't find files from breakpoints.

So that leads to my problem, how can I navigate in files that actually built the app when they are not in the solution?

Thank you.

It turns out I can actually use break filename:linenumber to add a break point, program will break there, even if it does not work at Xcode's break point view.

I think it's also how everybody else debug there UDK games.

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