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

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

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.

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…

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

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.


As mentioned on the website here:

To start debugging, I need to first Run Slicer remote debugger option from the Run menu in PyCharm.

After that, in 3D Slicer, open the Python debugger module and click Connect to debug server .

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