Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug console not showing values for Swift + Objective-C

My app uses Swift and a 3rd-party library in Objective-C. When my debugger steps into the Objective-C code, the debug console does not show the values of my Swift string correctly. Instead, it shows unable to read data. How can we resolve this issue?

enter image description here

like image 861
Boon Avatar asked Jan 22 '16 15:01

Boon


1 Answers

If you are using xcode 7.3 you can debug swift classes but xcode less than 7.3 you can debug for objective c class. Both swift and objective c support is not there. You can copy paste those objective c variables and you can print objective c variables by "po objectiveC_variable".

like image 187
Kotha Sai Ram Avatar answered Nov 04 '22 08:11

Kotha Sai Ram