3

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!

2
  • How are you using python with apache? Using mod_python? mod_wsgi? fastcgi? Commented Feb 18, 2011 at 22:37
  • I use a scriptaliasmatch to redirect all the traffic for m3u8 requests to python script. And, I think it uses built-in cgi, since I didn't put in anything extra. Commented Feb 18, 2011 at 22:41

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.