Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging using Xcode

Tags:

macos

xcode4

This question might be trivial or duplicate. I am on Mac OS X. I have an exe (.app for Mac OS X) compiled using makefile without Xcode. I want to debug this application using Xcode. (Application can be debugged as it is compiled using -g option). Now, I want to debug this exe using Xcode. How to do this in Xcode?

In Windows using Visual Studio, I can open exe under Visual Studio using "devenv application" and then debug.

How can this be achieved in Mac OS X system?

I am using Xcode 4.4.

like image 696
doptimusprime Avatar asked Jul 02 '26 02:07

doptimusprime


1 Answers

I did in following way:

  1. Create an empty project under Xcode.
  2. Under Product > New Scheme, add a scheme.
  3. Under Run, choose the exe or application.

Now, put the break points and run the exe.

like image 151
doptimusprime Avatar answered Jul 05 '26 02:07

doptimusprime



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!