There exists a very useful way to debug requests in 100.x, this:
let config = AGSRequestConfiguration.global()
config.debugLogFileURL = URL(fileURLWithPath: "/tmp/arcgis.md")
config.debugLogRequests = true
config.debugLogIncludeRequestHeaders = true
config.debugLogResponses = true
config.debugLogIncludeResponseHeaders = true
config.debugLogResponseTrimThreshold = 500
config.debugLogIgnoreTiledLayerRequests = true
Is there an equivalent version in 200.x? I checked the documentation but haven't found anything similar.