Mac QuickTime组件调试 [英] Mac QuickTime component debugging

查看:227
本文介绍了Mac QuickTime组件调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我是Mac编程的新手。我下载了 macam项目,并使用Xcode 4.1将调试版本成功编译为32位代码。输出是我手动复制到Library / QuickTime文件夹的QuickTime组件。现在我想调试组件,但没有运气。我在代码中启用了多个断点,然后使用Product-> Debug-> Attach to Process来检查Skype中的网络摄像头输出。 Skype显示(虚拟)网络摄像头运行,但我的断点不起作用。我相信我的功能是被调用的,因为它们是绘制彩色条纹的网络摄像头输出。



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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆