How to debug attribute rules that don't have errors (console messages not supported)

03-31-2022 08:41 AM
Frequent Contributor

I have a calculation attribute rule that runs without errors, but doesn't work as expected:
Attribute rule works in Pro 2.9.2, but not in Pro 2.6.8

I want to debug the code, to see what part of it is failing to update the geometry's vertices.

  • The code doesn't produce any errors, so I can't use error messages to help me.
  • And ArcGIS Pro 2.6.8 doesn't support outputting console messages (unlike Pro 2.9.2 +/-).

Does anyone have any tips for debugging Arcade code in that scenario?


Tags (1)
0 Kudos
1 Reply
Occasional Contributor


I believe you can use the error message to your advantage. If the code has an expected return value you can use it to print the value as text. 

    "errorMessage": Text()

Although this may not work if the rule you have is doing something geometry-related.


0 Kudos