Include in instructions to configure PythonSlicer as Python interpreter in PyCharm
I added my frustration and detailed steps to the discourse too- but I'm shocked that such an important detail is missing in the README.
I've been struggling to set this up for weeks on and off..
I didn't even get the idea until an ai google search tipped me off:
Even that doesn't instruct to find you PythonSlicer.exe
and the youtube tutorial I was trying to follow gave a hint (though not explicitly)
The AI chatbot gave incorrect answer. There is no need to select "PythonSlicer" as interpreter in PyCharm.
When debugging Slicer, you "attach" the debugger to the Python interpreter running in Slicer, so you may not even need to select any Python interpreter inside PyCharm (but if PyCharm wants you to select one then you can choose any default/system Python environment that you have).
If you use the latest PyCharm version then the connection fails because PyCharm developers broke their debugger (again). See details and a workaround here: https://github.com/SlicerRt/SlicerDebuggingTools/issues/19
OK thank-you! Maybe then the suggested IDE should be switched to VSCode in the readme then?
VS Code successful- and you're right no explicit interpreter required. Thank-you!
Maybe then the suggested IDE should be switched to VSCode in the readme then?
Good point, I've updated the README file.