Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How To Debug The Plugin? #7

Open
bunnyirsa opened this issue Sep 3, 2020 · 4 comments
Open

How To Debug The Plugin? #7

bunnyirsa opened this issue Sep 3, 2020 · 4 comments
Labels
question Further information is requested

Comments

@bunnyirsa
Copy link

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

@seanchas116
Copy link
Owner

seanchas116 commented Sep 3, 2020

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.

  • Copy a debug build of the plugin into /Library/CoreMediaIO/Plug-Ins/DAL
  • Open Cameo in Xcode
  • Open the plugin sources you want to debug in the same window
  • Add some breakpoints
  • Launch Cameo from the Xcode window

@seanchas116 seanchas116 added the question Further information is requested label Sep 3, 2020
@Raj123456788
Copy link

@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
Copy link

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

@wookayin
Copy link

wookayin commented Oct 19, 2020

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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants