Does pycharm debugging work with python3?

I am on Mac OS X 10.8 and I installed the latest stable Python 3 (3.2.3) using Homebrew. Then I created a virtual environment using virtualenvwrapper - mkvirtualenv --no-site-packages --python=/usr/local/bin/python3 py3 I configured Pycharm to use this virtualenv and I can run scripts, but I cannot debug them when I press debug the Pycharm debugger just shuts down:

 /Users/qweqwe/.virtualenvs/py3/bin/python /Applications/PyCharm.app/helpers/pydev/pydevd.py --multiproc --client 127.0.0.1 --port 61596 --file /Users/qweqwe/Dropbox/Works/test/python/asyncore_test.py pydev debugger: process 84441 is connecting Connected to pydev debugger (build 117.663) Process finished with exit code 132 

Am I missing something or Pycharm just can't debug python3?

Update: It does not work at all, no matter what the script is. Even when debugging a single-line greeting, a world-class debugger fails

+4
source share
2 answers

Yes. enter this in the settings pycharm / Library / Frameworks / Python.framework / Versions / 3.2 / bin / python3 (copied from Python3 / MacOSX Integration in pycharm )

+1
source

I had the same problem yesterday and you can try this way: add

 if __name__ == '__main__': 

in your code, then set breakpoints and run Debugger.

0
source

All Articles