SlicerDebuggingTools icon indicating copy to clipboard operation
SlicerDebuggingTools copied to clipboard

Include in instructions to configure PythonSlicer as Python interpreter in PyCharm

Open amymmorton opened this issue 1 year ago • 4 comments

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: image 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) image

amymmorton avatar Dec 05 '24 17:12 amymmorton

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

lassoan avatar Dec 06 '24 02:12 lassoan

OK thank-you! Maybe then the suggested IDE should be switched to VSCode in the readme then?

amymmorton avatar Dec 06 '24 15:12 amymmorton

VS Code successful- and you're right no explicit interpreter required. Thank-you!

image

amymmorton avatar Dec 06 '24 17:12 amymmorton

Maybe then the suggested IDE should be switched to VSCode in the readme then?

Good point, I've updated the README file.

lassoan avatar Dec 06 '24 17:12 lassoan