I apologize if this should have gone into any of the other (relatively few) remote debugging discussions here, but I felt that the problems I'm having might be slightly different than the others'.
I have a scenario where I run python scripts locally and want them to break into the debugger (Like c++ apps do) at the correct line and with the proper state. I do NOT want to "attach to process" manually, since that requires manual interaction
at a precise time (which is impossible with 100's of scripts running in a fast pace).
To compare with, I got this working perfectly with Eclipse and PyDev. The main difference there, I guess, is that then you start a python debugging server which simply waits for connections. The reason I ask for this is that some people at work like the
Msvs IDE/debugger more that Eclipse's, and I'd like to offer them both, with minimal effort, to get more people on the Python train :)
I would love for PTVS to have the same functionality. This is how I invoke the client script with PyDev.py in the Pythonpath:
> python -m pydevd --port 5678 --client 127.0.0.1 --
foo.py arg1 arg2 etc
I really like that approach since that, like cProfile, it's non intrusive to your own scripts. You get remote debugging "for free".
Am I missing something, is this already possible with PTVS today?
If not, is this something you plan to do, or at least think is valid enough to add to the task list?
Regards, Mathias Westerdahl
Related issue (but not exactly the same)