How to debug Widget Xcode 12

1.5k Views Asked by At

How to debug Widgets (WidgetKit) on Xcode 12?

For example, setting breakpoints or at least making print statements work.

Thank you!

1

There are 1 best solutions below

0
On BEST ANSWER

Go to Debug, Attach to process by PID or Name…

In the process name field, enter you widget target name. Then, run your widget target.