Since Live Preview Debug has been removed from Xcode 13, what would be the best way to debug a SwiftUI View when there is not path to this View yet?

As some discussion suggested (https://developer.apple.com/forums/thread/683773), that the Live Preview debug function has been removed from Xcode 13 for some reason.

I wonder what would be the best practice to debug a SwfitUI View when we have not yet established a path from the App's entry point to this View?

Hi,

Best way to debug a preview now would be to use Xcode's menu item Debug > Attach to Process (or the Process by Pid or Name) and select/use the name of your app. Then update a string literal in that view and it should cause the View's body to get called and hit any breakpoints you've got in that code.

Hope that helps!

Since Live Preview Debug has been removed from Xcode 13, what would be the best way to debug a SwiftUI View when there is not path to this View yet?
 
 
Q