# Issue with DebuggingTools Module on 3D Slicer (v5.6.2 r32448) on Ubuntu 22.04

**URL:** <https://discourse.slicer.org/t/issue-with-debuggingtools-module-on-3d-slicer-v5-6-2-r32448-on-ubuntu-22-04/40339>\
**Category:** Development\
**Created:** [November 23, 2024, 7:14am UTC](https://discourse.slicer.org/t/issue-with-debuggingtools-module-on-3d-slicer-v5-6-2-r32448-on-ubuntu-22-04/40339 "2024-11-23T07:14:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shahrokh](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shahrokh/32/1499_2.png) [@shahrokh](https://discourse.slicer.org/u/shahrokh)\
**Post date:** [November 23, 2024, 7:14am UTC](https://discourse.slicer.org/t/issue-with-debuggingtools-module-on-3d-slicer-v5-6-2-r32448-on-ubuntu-22-04/40339/1 "2024-11-23T07:14:10Z")

</div>

**Hello Dear Developers and Users,**

Excuse me for asking a question that might be obvious to many:

I have installed the **DebuggingTools** module on 3DSlicer **version 5.6.2 r32448** on **Ubuntu 22.04**.  
I also installed **PyCharm 2024.2.4 (Professional Edition)** , with its executable located in the following path:  
`/home/sn/pycharm-2024.2.4/bin/pycharm.sh`

Additionally, its **egg file** is located here:  
`/home/sn/pycharm-2024.2.4/debug-eggs/pydevd-pycharm.egg`

I have tried to follow the setup instructions from the **SlicerDebuggingTools** page on GitHub:

**Title** : GitHub - SlicerRt/SlicerDebuggingTools: Extension for 3D Slicer containing various tools for module development and debugging  
**Address** : [GitHub - SlicerRt/SlicerDebuggingTools: Extension for 3D Slicer containing various tools for module development and debugging](https://github.com/SlicerRt/SlicerDebuggingTools)

I checked that the installed PyCharm also includes the **remote debug server**.  
As shown in the image below, I cannot select the path to the **pydevd-pycharm.egg** file in the DebuggingTools module (I don’t have the Browse option in the **Debugger** section of this module.), and 3DSlicer also fails to automatically detect the location of this file.

 ![Screenshot from 2024-11-23 09-51-42](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/c/2cae4efb6b6821208a3b886abe95415ae18adfe3.png)

To solve this problem, I have tried the following steps, but none of them worked and my issue remains unresolved.  
**Step 1** : Added the path of this file to the **PATH** variable and included it in the **~/.bashrc** file.  
`export PATH=$PATH:/home/sn/pycharm-2024.2.4/debug-eggs/`

**Step 2** : Added the path of this file to the **PYTHONPATH** variable.  
`export PYTHONPATH=/home/sn/pycharm-2024.2.4/debug-eggs`

Additionally, as shown in the image below…

 ![Screenshot from 2024-11-23 10-41-04](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/3/43819efaf5f70b5ff6a6ce1e0b4bbf0257c939e3.png)

The following command was also executed:  
`pip install pydevd-pycharm~=242.23726.102`

I also did not see any option called **Debugger** or similar in the **Application Settings** section of 3DSlicer.  
Please guide me on what I should do so that 3DSlicer can recognize the location of the **pydevd-pycharm.egg** file, allowing me to use PyCharm’s debugging features for module development.

Best regards.  
Shahrokh

---

<div class="post-metadata">

**Author:** ![shahrokh](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/shahrokh/32/1499_2.png) [@shahrokh](https://discourse.slicer.org/u/shahrokh)\
**Post date:** [November 23, 2024, 11:44am UTC](https://discourse.slicer.org/t/issue-with-debuggingtools-module-on-3d-slicer-v5-6-2-r32448-on-ubuntu-22-04/40339/2 "2024-11-23T11:44:10Z")

</div>

Dear all,

I wanted to share an update regarding the issue I raised earlier about setting up PyCharm debugging with 3D Slicer.

I noticed that in the version of **5.0.2 r30822 / a4420c3** , the option to specify the **PyCharm debug egg path** is available under the **Settings** section of the **Python debugger** module, as shown in the screenshot below.

 ![1](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/1/91d703e128440447a9463d28b33a25db8cef088a.png)  
As mentioned on the website here:

- **Title** : GitHub - SlicerRt/SlicerDebuggingTools: Extension for 3D Slicer containing various tools for module development and debugging
- **Address** : [GitHub - SlicerRt/SlicerDebuggingTools: Extension for 3D Slicer containing various tools for module development and debugging](https://github.com/SlicerRt/SlicerDebuggingTools)

To start debugging, I need to first **Run** _Slicer remote debugger_ option from the **Run** menu in PyCharm.

 ![2](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/9/99b56d8320fc68665e3644f35968d7883744328f.png)

After that, in 3D Slicer, open the _Python debugger_ module and click _Connect to debug server_ .

 ![Screenshot 2024-11-23 14:47:51](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/1/b197b95d09248ecb8fb211fb448c0652457c139a.png)

However, as I mentioned in my previous issue, the **PyCharm debug egg path** option is not available in the new version of 3DSlicer **5.6.2 r32448 / f10cd8c**.

Best regards.  
Shahrokh
