How to debug Widget Xcode 12

Viewed 903

How to debug Widgets (WidgetKit) on Xcode 12?

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

Thank you!

1 Answers

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.

Related