I found the hard way that debuging a pyt could be very script like.
class Toolbox(object):
///Toolboxcode and Classes
def debug():
"""
Debug with pydevd (I use pycharm but people could just change the aproach)
"""
tbx = Toolbox()
tool = ToolboxLabel()
print('Debugging tool: {}'.format(tool.label))
debug_folder = os.path.dirname(__file__)
params = tool.getParameterInfo()
params[0].value = os.path.join(debug_folder, "test")
params[1].value = os.path.join(debug_folder, 'test', "docs") #os.path.join(debug_folder, 'testes', "pdfs")
params[2].value = "CE"#"PI"
params[3].value = 50
params[4].value = os.path.join(debug_folder, 'test', 'temp')
params[5].value = os.path.join(debug_folder, 'test', "test.shp")
tool.execute(params, None)
if "__main__" == __name__:
if "pydevd" in sys.modules:
debug()
A more modern official debug
doc/Tutorial it would be appreciated.
You've got our attention! We think this is a good suggestion and have entered it in our backlog. This does not guarantee that the idea will be developed so we encourage the community to continue voting and sharing feedback which will help teams gauge user demand.
We're working on this! This status does not guarantee that the functionality will be in the next release, but development work has begun. Release cycles vary by product so make sure to check the product life cycle information to get an idea of when to expect the next release.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.