If you are a macOS user and you have been using Xcode in the past, you know well how easily Xcode allows debugging. Xcode, while flawed, allows debugging a lot more efficiently than some alternatives. Since Xcode 11, SPM is natively integrated into Xcode, which makes it much easier for us to write web services. If you run your service in Xcode and it crashes, Xcode will automatically try to tell you where exactly it crashed. It will show you the exact error and the trace of how it happened.
Check it out in the following example:
You can see that Xcode is helping us to find the problem. As a general rule of thumb, you should try to debug using Xcode; the alternatives require a good bit more work.
Let's take a look at the most popular alternative to using Xcode: lldb.