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