Xcode debugging - displaying images

前端 未结 7 910
臣服心动
臣服心动 2020-12-07 15:04

I love using the Xcode debugger. You can take a look at a variable\'s value and even change it.

But can I somehow DISPLAY the image that is referenced by an image va

7条回答
  •  余生分开走
    2020-12-07 15:45

    You can put a breakpoint in the line of your image, and then in the debugger, just write:

    po your_UIImage_object
    

    po stands for print object, it's a GDB command which will display several useful informations about the object passed, in your case the image.

提交回复
热议问题