Alamofire: [Alamofire 5] po command in LLDB is not working

Created on 24 Oct 2019  Â·  12Comments  Â·  Source: Alamofire/Alamofire

What did you do?

In Alamofire 5, We can't use po (expr) command in LLDB for debugging.

What did you expect to happen?

@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.

What happened instead?

This error message was given.

error: Couldn't materialize: can't get size of type
error: errored out in DoExecute, couldn't PrepareToExecuteJITExpression

Alamofire Environment

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)

Demo Project

https://github.com/himaratsu/AlamofirePractice

support

Most helpful comment

@atrebbi No fix yet, still broken from lldb. Alternate debugging approaches like expr print(variable) might work, depending on the scenario.

All 12 comments

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.

Was this page helpful?
0 / 5 - 0 ratings