Pydev 代码浏览?
我一直在尝试使用 pydev 来做一些 python (不能说到目前为止我过得很愉快)。我终于为我正在使用的库完成了代码完成工作,但我仍然想知道一些事情......
所以我正在使用的库称为橙色。假设我调用该函数 Orange.MakeRandomIndices2,但我不确定它是如何工作的...我想查看该函数的源代码,或者至少一些有关其用法的有用信息..有什么办法可以做到这是我的想法吗?
另外,在调试时,我可能想做同样的事情...进入该函数并在内部调试它...我似乎无法做到这一点,我只是不明白为什么看到我的源代码硬盘。
谢谢。 杰成
I've been -trying- to use pydev to do some python (can't say I'm having good times so far). I finally got code completion working for the libraries I'm using, but I'm still wondering about a couple of things...
So the library I'm using is called orange. Say I call the function orange.MakeRandomIndices2, but I'm not sure how it works... I want to see the source code of this function, or at least some useful information as to it's usage.. Is there any way to do this from my ide?
Also while debugging, I might want to do just the same.. step into that function and debug it internally... I cannot seem to be able to do this and I just don't understand WHY seeing I have the source code on my hard disk.
Thanks.
JC
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您将光标悬停在函数或类上时,Pydev 应该向您显示文档字符串。单击函数/类,然后按 F3,它将带您到该函数/类的定义。如果没有发生这种情况,您可能没有正确配置 Pydev。再次查看文档,确保您已完成所有步骤。如果仍然不起作用,Pydev 作者在 pydev 邮件列表上非常活跃且乐于助人。
当您调试代码时,F5 将单步执行函数。 F6 将跨过去。
When you hover your cursor over a function or class, Pydev should show you the docstring. Click on the function/class, then press F3, and it will take you to the definition of that function/class. If that is not happening, you probably have not configured Pydev correctly. Look over the documentation again, making sure you have done all the steps. If that still does not work, the Pydev author is very active and helpful on the pydev mailinglists.
When you are debugging code, F5 will step into a function. F6 will step over.