在iPhone lldb(obj-c)中使用matplotlib [英] Using matplotlib in iphone lldb (obj-c)

查看:97
本文介绍了在iPhone lldb(obj-c)中使用matplotlib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试寻找一种方法来在基于ojective-C的iphone程序中以数组形式显示值,如解决方案

我考虑退后一步.如果您可以将objective-c数组呈现为UIViewUIImage上的图,则可以站在带有chisel的断点上查看它:
https://github.com/facebook/chisel

I am trying to find a way to display the values in arrays in my ojective-C based iphone program, as described in my other question here

I am able to get the contents of an array in my program into the python interpreter while the iphone program is stopped at a break point inside a function (to be specific, the function is the render callback function for audio)

However, when I tried to plot the contents of the array (availabe as SBValueList in the Python interpreter) using matplotlib, the debug session simply crashed without any error messages

To try a simple example, once the program stopped at the breakpoint, I tried issuing a very simple matplotlib command as follows:

import matplotlib.pyplot as plt
plt.plot([1,2,3,4])  

but the debug session suddenly crashes and exits at plt.plot([1,2,3,4])

Is it possible to display contents of array in lldb using matplotlib? Is there any other way to display the contents of my array a graph while debugging my iphone program?

解决方案

I'd consider taking a step back. If you can render your objective-c array as a plot on UIView or UIImage you could view it while standing on a breakpoint with chisel:
https://github.com/facebook/chisel

这篇关于在iPhone lldb(obj-c)中使用matplotlib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆