Slicer学习笔记(二十)slicer编写自己的扩展模块
如果需要调试参考官网:Python debugging
调试如果使用pycharm,需要pycharm专业版。
参考:SlicerRt/SlicerDebuggingTools
-
In PyCharm:
- In the menu select: Run / Edit configurations
- Click the small + icon in the top-left (Add new configuration)
- Select Python remote debug configuration or Python debug server as template
- Set Name: Slicer remote debugger
- Set Port: 5678
- Click OK
-
In Slicer:
- Install the DebuggingTools extension
- Open the Python