Setting up ArcMap to debug scripts in PyCharmI'm able to debug a python script, in PyCharm, that was run from an ArcMap toolbox script. From Catalog or ArcMap, right-click the script, select debug. After PyCharm opens, select debug to start a debug session.