Mac QuickTime组件调试 [英] Mac QuickTime component debugging
问题描述
Apple文档调试共享库不是很好。我的方法或简单的事情有什么根本的错误我需要先做吗?任何指导都是非常感激的。
调试这个最简单的方法之一,如果你要使用第三方应用程序如Skype,将通过调试语句或网络套接字。
您可以做什么,是创建一个UDP套接字来发送消息,以及一个客户端申请听他们。这将提供您从应用程序访问实时信息...
您还可以放入UDP listen语句等待(您的其他测试应用程序)发送参数。
我知道这不是传统的调试方式,它可能会导致自己的问题,但如果做到正确,可以提供大量有用的调试,当所有其他工具
Firstly, I am a newbie on Mac programming. I have downloaded macam project and successfully compiled debug version to 32-bit code with Xcode 4.1. The output is a QuickTime component that I manually copy to Library/QuickTime folder. Now I want to debug the component but have no luck. I enable multiple breakpoints in the code and then use Product->Debug->Attach to Process to check the webcam output in Skype. Skype shows the (dummy) webcam running but my breakpoints do not work. I am sure my functions are called as they are the ones drawing color stripes as webcam output.
Apple documents on debugging a shared library are not very good. Is there something fundamental wrong with my approach or something simple I need to do first? Any guidance is much appreciated.
One of the easiest ways of debugging this, if you are going to use a third-party application like Skype, is going to be thru debug statements or a network socket.
What you can do, is create a UDP socket to send messages, as well as a client application to listen for them. This will provide you access to realtime information from your application...
You can also put in UDP listen statements to wait for (your other testing app) to send parameters.
I know this isn't the traditional way of debugging, and it can cause its own problems, but if done properly, can provide tons of useful debugging when all other tools fall short.
这篇关于Mac QuickTime组件调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!