将调试器附加到在 apache 上运行的 python 脚本
我对此很陌生,不确定这是否可行。
所有对 apache 的特定文件格式的请求都被重定向到 python 脚本。根据某些条件,该脚本生成输出并将其返回给客户端。
我使用 Eclipse + Pydev 作为我的 IDE。一旦我对脚本进行了更改,我就会使用 ftp 将其上传到服务器。有没有办法,我可以附加一个调试器,这样每当脚本在服务器上运行时,调试器就会被激活,我可以放置断点以及不从那里调试它的东西?
我真的很感激任何帮助,因为调试现在是一场噩梦!
I'm very new to this and am not sure if this is feasible.
All the requests for a specific file format to apache are redirected to a python script. Based on certain conditions, this script generates the output and returns that to the client.
I am using Eclipse + Pydev as my IDE. Once I make changes to the script, I upload it to the server using ftp. Is there a way, I can attach a debugger, so that whenever the script is run on the server, the debugger gets activated and I can put breakpoints and what not to debug it from there ?
I'd really appreciate any help, since debugging is a nightmare right now!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
PyDev 中的远程调试怎么样
这不是您所要求的完全;您正在谈论附加到一个进程,而通过远程调试,您可以将进程连接到调试服务器。
也就是说,我经常使用此功能来调试在 apache / mod_python 中运行的脚本,并且非常有效。
What about remote debugging in PyDev
It is not exactly what you requested; you were talking about attaching to a process, while with remote debugging, you have the process connecting to your debugging server.
That said, I have been using this feature a lot to debug scripts running in apache / mod_python, and it was very effective.