简体   繁体   English

适用于Beaglebone Black的Python跨开发平台

[英]Python cross development platform for beaglebone black

I want to use my pc to debug a Python program running on beaglebone black to control GPIO just like what derek molloy did in this video " http://derekmolloy.ie/beaglebone/setting-up-eclipse-on-the-beaglebone-for-c-development/ " the beagle's cloud9 IDE supports python only for running the code and not debugging 我想用我的PC调试在beaglebone black上运行的Python程序,以控制GPIO,就像derek molloy在此视频中所做的一样“ http://derekmolloy.ie/beaglebone/setting-up-eclipse-on-the-beaglebone-对于-C-发展/ “小猎犬的CLOUD9 IDE支持Python仅适用于运行的代码,而不是调试

How can i do remote debugging in beagle using python? 如何使用python在beagle中进行远程调试?

The BeagleBone is a computer like an other, with a complete Linux distribution running on it. BeagleBone是一台与众不同的计算机,并在其上运行了完整的Linux发行版。 So every solution working with a remote PC work on it. 因此,与远程PC配合使用的每个解决方案都可以在其上运行。

For exemple: 举个例子:

  • You can directly connect the Beaglebone thru SSH, using editor directly on it (vi(m), nano, emacs), and control execution directly on it using the pdb debugger 您可以直接通过SSH(vi(m),nano,emacs)上的编辑器通过SSH直接连接Beaglebone,并使用pdb调试器直接在其上控制执行
  • You can edit your file on your computer with the IDE you want and send them thru SFTP, and control execution thru SSH. 您可以使用所需的IDE在计算机上编辑文件,然后通过SFTP发送文件,并通过SSH控制执行。
  • Using an IDE supporting remote debugging like PyCharm or PyDev. 使用支持远程调试(例如PyCharm或PyDev)的IDE。

Some pointer for PyDev: http://pydev.org/manual_adv_remote_debugger.html http://brianfisher.name/content/remote-debugging-python-eclipse-and-pydev PyDev的一些指针: http : //pydev.org/manual_adv_remote_debugger.html http://brianfisher.name/content/remote-debugging-python-eclipse-and-pydev

And for PyCharm: http://www.jetbrains.com/pycharm/webhelp/remote-debugging.html 对于PyCharm,请访问: http : //www.jetbrains.com/pycharm/webhelp/remote-debugging.html

(the necessary remote part are the same for the two IDE and come from PyDev) (两个IDE所需的远程部分相同,并且来自PyDev)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM