打断点运行项目并停于断点处,在控制台中敲入如下其中一条this
po 变量名 or print 变量名
会出现出现问题的地方debug
warning: Swift error in module 项目名. Swift error in module XXXDebug info from this module will be unavailable in the debugger error: in auto-import: failed to get module '项目名' from AST context:
能够看出提示咱们在项目的桥头文件中第三方库xxx的导入方式有误。code
项目中在xxx桥头文件中的导入方式以下
若是你是经过Cocoapods来使用OC第三方的库,你须要将导入方式改成这种方式:get
@import XXX;
以这种方式逐个修改OC第三方的导入方式,就能够解决控件台没法获取变量值的问题了。import
若是是经过Cocoapods来使用Swift第三方库,直接在须要使用的地方导入便可变量
import Swift第三库的名称