Re: Debugging Objective-C++ - how to? SOLVED
Re: Debugging Objective-C++ - how to? SOLVED
- Subject: Re: Debugging Objective-C++ - how to? SOLVED
- From: P Teeson <email@hidden>
- Date: Mon, 17 Oct 2005 10:22:45 -0400
The answer is that one needs to change the .cpp extension to be .mm.Oct 16, 2005 kl. 6:03 PM skrev P Teeson: Using Tiger 4.2 Xcode 2.2 Beginning developing Obj-C++ project
I am working on an Obj-C++ project but don't know how to step into the C++ methods in the debugger. (Specifically the ctor/dtor) The project started as a Cocoa Document project. The Cocoa file is renamed with the .mm extension. I have a separate C++ file for the things needed there. It has an extension of .cpp. Everything runs fine but I want to be able to step through both Obj-C and C++ code. When debugging I can step through the Cocoa methods but cannot step into the C++ ones.
Why not? Is it because I am using the .cpp extension?
Yes that's why. I had hoped to keep that since the reason for the C++ is portability of what will become a dll.
I guess I'll have to live with a .mm extension and when compiling the C++ dll on a different platform do whatever is needed at that time. Yes I searched the mail archive and also CocoBuilder using "debugging Objective-C++". I found the Clark Cox item and the Apple docn about debugging C++ from 2001 (Project Builder days).
Is there a way to debug both C++ and Obj-C in an Obj-C++ project? If so how do I do it?
TIA and
respect....
Peter
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden