Skip to main content
Participating Frequently
September 18, 2021
Question

How to debug C++ plugin in Xcode with Photoshop

  • September 18, 2021
  • 1 reply
  • 571 views

HI

I am experienced in CEP/JSX development, and now start changing to native C++ plugin.

I started with the C++ SDK sample code, everything works fine,  except I do not know how to debug the code in Xcode.

I need to build the plugin, copy it to the Plug-in directory then restart Photoshop every time ...

I know there must be an efficient way to get. I searched the whole web and find nothing about debuging with xcode, only some receipts on windows VS studio IDE.

 

So, anyone exprienced in mac development, please guide me, or show some clue to search...

Thanks a lot!

apprecieate again.

 

This topic has been closed for replies.

1 reply

Legend
September 18, 2021

You absolutely need to restart Photoshop every time. Photoshop loads your plugin when it starts, and your code becomes part of Photoshop. So any code change must involve killing or quitting Photoshop, then starting it. Yes, plug-in testing can be pretty tedious.

 

To debug, since you aren't building an app, the target of your debugging must be Photoshop. I haven't done this with Photoshop plug-ins but it works with Acrobat plug-ins.

Participating Frequently
September 18, 2021

Would you please show me the detail steps? have no clue to do it... 

is it somewhere configured in the run schemes?

Thanks for reply.