AnsweredAssumed Answered

调试arcpy 程序时,无法进入到断点当中?

Question asked by tianwenjun0909 on Nov 14, 2017
# try catch can not work
try:
    arcpy.env.workspace = gdb
    arcpy.SplitByAttributes_analysis("test10",out_path,"oid_") # 按属性分割, 数据必须放到gdb当中
    print 'finish split...'
except Exception as e:
    print e
except arcpy.ExecuteError as e:
    print arcpy.GetMessages()
finally:  
   print 'what?'
执行完arcpy.SplitByAttributes_analysi之后,
会直接执行剩下来的脚本,
无法进入到断点当中?
这是什么原因造成的?

Outcomes