unity3d联机调试

来源:互联网 发布:体质辨识软件app 编辑:程序博客网 时间:2024/05/22 13:04

1.log输出和unity3d Exception输出

打开Develpment Build和Script Debugging

可以精确到哪个文件哪一行

命令:adb logcat -s Unity


2.profiler

方法1:使用unity3d的profiler

adb forward tcp:54999 localabstract:Unity-<insert bundle identifier here>

    连接目标程序。

编译选项Development Build打开

adb devices:查看是否连接了目标设备。

方法2:使用logcat输出profiler

打开 Enable 'logcat' Profiler

原创粉丝点击