开发者

Attaching debugger to python script running on apache

I'm very new to this and am not sure if this is feasible.

All the requests for a specific file format to apach开发者_StackOverflow中文版e 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!


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜