开发者

How to inspect a variable in XCODE?

开发者 https://www.devze.com 2023-01-17 03:46 出处:网络
开发者_如何学CIs there any command using which we can inspect a object in command line while app is running in DEBUG mode. I do not want to put description message in the code.Try these resources. one
开发者_如何学C

Is there any command using which we can inspect a object in command line while app is running in DEBUG mode. I do not want to put description message in the code.


Try these resources. one two

(gdb) p varName


Yes sure. If you are debuging, breakpoints are automatically set to on. Just set a breakpoint to the line in which the variable is. The program stops as soon it reaches the line with the breakpoint. Just hold the cursor over the variable and all important data is displayed. I do it also that way all the time. ;-)

0

精彩评论

暂无评论...
验证码 换一张
取 消