I am new to Xcode, macOS development etc.. So maybe its just because I am new - but I could not make a simple printout to console work with all effort.

I created a minimum nonworking example of my problem:

```swift
import SwiftUI

struct Test: View {
    @State var message = "Test"
    var body: some View {
        Button(action: {
            print("test worked")
            message = "test worked"
       }) {
            Text(message)
       }
    }
}

struct Test_Previews: PreviewProvider {
    static var previews: some View {
        Test()
    }
}

```

When executing this the Button text changes, but nothing appears in console.

I tried by following this tutorial, but it did not work with it either: <https://www.hackingwithswift.com/read/18/2/basic-swift-debugging-using-print>

I tried by enabling debug preview according to this thread: [How to print() to Xcode console in SwiftUI?](https://stackoverflow.com/questions/56517813/how-to-print-to-xcode-console-in-swiftui)

And I tried by enabling this setting: [![enter image description here](https://i.stack.imgur.com/3WuTj.jpg)](https://i.stack.imgur.com/3WuTj.jpg)

Nothing helps.. I am using Xcode Version 12.1 (12A7403) btw.