seanchas116 / SimpleDALPlugin

Simple CoreMediaIO DAL virtual camera plugin example written in Swift
MIT License
150 stars 19 forks source link

How To Debug The Plugin? #7

Open bunnyirsa opened 4 years ago

bunnyirsa commented 4 years ago

I ran the example successfully, but I don't know how to debug the plugin?

seanchas116 commented 4 years ago

As I wrote in the readme, you can use https://github.com/lvsti/Cameo (or other webcam-using apps that can be run from Xcode) for debugging. The plugin runs in the same process, thus you can debug the plugin in the same way as you debug Cameo.

Raj123456788 commented 4 years ago

@seanchas116 What do you mean by "Open the plugin sources you want to debug in the same window". I got the Cameo running but how will it hit the breakpoints in SimpleDALPlugin project? Can you please simplify the steps? I tried attaching the to process id of Cameo but that did not work. Thanks!

Raj123456788 commented 4 years ago

Got the answer: Just add the project to the cameo project. Breakpoints will hit.

wookayin commented 3 years ago

Can somebody explain more in detail? How to run Cameo (in a debug mode) from xcode -- I cannot make breakpoints hit. Do I need to copy the debug build of the DAL plugin every time? Can we do it automatically in two xcode projects? How can I debug the plugin by building directly from xcode and run it (without the copy step)?