In Alamofire 5, We can't use po (expr) command in LLDB for debugging.
@IBAction func didTapButton(_ sender: Any) {
AF.request("https://httpbin.org/get").response { response in
debugPrint(response) // <= breakpoint here
}
}
When typing po response at the breakpoint,, we expect to be shown the content of response.
This error message was given.
error: Couldn't materialize: can't get size of type
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression
Alamofire version: 5.0.0-rc.2
Xcode version: 11.1 (11A1027)
Swift version: 5
Platform(s) running Alamofire: iOS
macOS version running Xcode: 10.14.6(18G95)
Yes, I've noticed this too. It seems to be a bug in lldb or Xcode's use of it. I suggest you file a bug with Apple.
I'm getting same problem tryng to debug my application using alamofire ; is there a fix ?
@atrebbi No fix yet, still broken from lldb. Alternate debugging approaches like expr print(variable) might work, depending on the scenario.
The same. Was a solution found?
@himaratsu, still happend?
The same. Was a solution found?
I am looking for a solution as well
Getting the same problem. Has any found a solution for this?
I didn't see(
Still no solution?
I'm also facing this issue. Any solution yet?
This seems to be better in Xcode 12, please take a look.
Most helpful comment
@atrebbi No fix yet, still broken from lldb. Alternate debugging approaches like
expr print(variable)might work, depending on the scenario.