Mac QuickTime component debugging

给你一囗甜甜゛ 提交于 2019-12-06 07:26:49

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.

Abduliam Rehmanius

The approach I used for debugging of my QuickTime component project was to use NSLog() in the beginning and return of every major function in the format ClassName functionName: parameters... I then used Console (Search for console in spotlight) app to view the logs. This might not be the easiest/best way but I did succeed to debug and complete my component.

Edit: this question provide some more useful information about NSLog How to print out the method name and line number and conditionally disable NSLog?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!