With latest pycharm (4.0.4) :
accoding to this stackoverflow response I can run a module (with a somehow trick) instead of a script: http://stackoverflow.com/questions/22081065/create-a-pycharm-configuration-that-runs-a-module-a-la-python-m-foo
it's ok for the normal run.
but I want also to debug but this fail with :
/home/gstarck/.virtualenvs/surveil/bin/python -m /home/gstarck/work/devtools/pycharm/pycharm-4.0.3/helpers/pydev/pydevd.py –multiproc –client 127.0.0.1 –port 48055 –file surveil.cmd.api
/home/gstarck/.virtualenvs/surveil/bin/python: Import by filename is not supported.
Process finished with exit code 1
Effectively pydevd expects a real filename for its –file argument.. that's the problem.
If someone has an idea on how to do this ??