Debug Script

Debug Script

Shohrukhi.Ilhomzoda
Enthusiast Enthusiast
495 Views
1 Reply
Message 1 of 2

Debug Script

Shohrukhi.Ilhomzoda
Enthusiast
Enthusiast

Hello all. How can I debug my written code? I run the code as Addtional Action and it runs fine but when I save the code in Workflow Action script and run it, it throws a RunTime Exception. I wanted to test and debug the code once and see where the problem is.Also I wanted to know which parameters are important when debugging, e.g. WorkSpaceID, dmsID etc..

0 Likes
496 Views
1 Reply
Reply (1)
Message 2 of 2

sven.dickmans
Autodesk
Autodesk

Do you know the debug feature in the Script Editor? See the online help for reference. 

In order to debug a script from within the Script Editor, click the button Test at bottom to provide the variables relevant for the test: If you want to debug a workflow transition, provide the dmsID of the given record (which you can retrieve from this record's URL in your browser) and the ID of the workflow transition (use the internal ID that you get from the Workflow Editor). Finally, click on Debug to execute the script line per line and to grab variable values in real time.

debug.png

 

Please note that you can perform changes to the script code in debug mode, but these changes get lost once you close the debug mode. You better copy the code to the clipboard if you changed it in debug mode.

0 Likes