# Python debugger not connecting to Pycharm

**URL:** <https://discourse.slicer.org/t/python-debugger-not-connecting-to-pycharm/19284>\
**Category:** Support\
**Created:** [August 20, 2021, 3:14pm UTC](https://discourse.slicer.org/t/python-debugger-not-connecting-to-pycharm/19284 "2021-08-20T15:14:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fullerkj](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fullerkj/32/11974_2.png) [@fullerkj](https://discourse.slicer.org/u/fullerkj)\
**Post date:** [August 20, 2021, 3:14pm UTC](https://discourse.slicer.org/t/python-debugger-not-connecting-to-pycharm/19284/1 "2021-08-20T15:14:22Z")

</div>

**Operating system:** Ubuntu 18.04.5 LTS  
**Slicer version:** 4.11.20210226  
**PyCharm:** 2021.2 (Professional Edition)  
**Expected behavior:** I followed the instructions on [SlicerDebuggingTools/README.md at master · SlicerRt/SlicerDebuggingTools · GitHub](https://github.com/SlicerRt/SlicerDebuggingTools/blob/master/README.md) to set up the debugger in Pycharm to Slicer  
**Actual behaviour:** PyCharm debug egg path didn’t automatically load in the path. Found three different folders containing the same pydevd-pycharm.egg file on my computer. Tried all three and none of them worked (Restarting Slicer each time). Any other suggestions for me for why this isn’t working?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/e/9e6f7fa35ce2d5431a870ee0ee09ad6719a007be.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 3, 2021, 5:48am UTC](https://discourse.slicer.org/t/python-debugger-not-connecting-to-pycharm/19284/2 "2021-09-03T05:48:19Z")

</div>

I’ve just tested PyCharm remote debugging on Ubuntu and it works well. See [these notes](https://github.com/SlicerRt/SlicerDebuggingTools/blob/master/README.md#connection-refused) on how to fix the `Connection refused` error.
