Moved to script version to debug in PyCharm