woodstok
woodstok

Reputation: 2784

How to use xcode to debug and step through llvm source code

I am currently using Xcode to build llvm source. Once built, I use lldb to step through the execution of specific llc binary through the console.

How can i use Xcode to set breakpoints and step through the code in xcode itself?

Upvotes: 0

Views: 262

Answers (1)

woodstok
woodstok

Reputation: 2784

I was new to Xcode and using ALL_BUILD in Xcode as target. Changed the target to llc, added the required file.bc as argument by "Edit Scheme" and now I can step through the execution!

Upvotes: 1

Related Questions