Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to debug QT Component project use XCode2.2



On Jun 5, 2006, at 8:39 PM, ann_chen (陳勇) wrote:
I make one QT component project of one media codec.
How can set the XCode2.2 to debug it .

First, unless you are constrained to version 2.2, I'd strongly recommend upgrading to 2.3.

Next, you need a "runner app" ... FiendishThings will do, as will
qt_tools, both of which are available in the QuickTime sample code.
Even the ElectricImageExampleCodec has a test runner.

Then, in XCode, in the "project menu" set the custom executable to
your "runner app" and then you can trace through your component via
it.

Or, in gdb you can attach to the "runner app" which calls your component.

Or you can put printf commands (crude, I know) in your component and
they will appear in the XCode console.

So there are a number of approaches.

I'd also love to hear what other people to do debug components.
(the only Develop article on this is over 10 years old).

Best,
Jeff



--
   Give a man a fire, and he will stay warm for a day.
   Set a man on fire, he stays warm for the rest of his life



_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden
References: 
 >How to debug QT Component project use XCode2.2 (From: ann_chen (��勇) <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.