<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to debug attribute rules that don't have errors (console messages not supported) in Attribute Rules Questions</title>
    <link>https://community.esri.com/t5/attribute-rules-questions/how-to-debug-attribute-rules-that-don-t-have/m-p/1159920#M375</link>
    <description>&lt;P&gt;I have a calculation attribute rule that runs without errors, but doesn't work as expected:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-questions/attribute-rule-works-in-pro-2-9-2-but-not-in-pro-2/td-p/1159913" target="_self"&gt;Attribute rule works in Pro 2.9.2, but not in Pro 2.6.8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want to debug the code, to see what part of it is failing to update the geometry's vertices.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The code doesn't produce any errors, so I can't use error messages to help me.&lt;/LI&gt;&lt;LI&gt;And ArcGIS Pro 2.6.8 doesn't support outputting console messages (&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/where-do-the-arcade-console-messages-go-to/m-p/1125076/highlight/true#M48931" target="_self"&gt;unlike Pro 2.9.2&lt;/A&gt;&amp;nbsp;+/-).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Does anyone have any tips for debugging Arcade code in that scenario?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 15:48:30 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-03-31T15:48:30Z</dc:date>
    <item>
      <title>How to debug attribute rules that don't have errors (console messages not supported)</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-debug-attribute-rules-that-don-t-have/m-p/1159920#M375</link>
      <description>&lt;P&gt;I have a calculation attribute rule that runs without errors, but doesn't work as expected:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/attribute-rules-questions/attribute-rule-works-in-pro-2-9-2-but-not-in-pro-2/td-p/1159913" target="_self"&gt;Attribute rule works in Pro 2.9.2, but not in Pro 2.6.8&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I want to debug the code, to see what part of it is failing to update the geometry's vertices.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The code doesn't produce any errors, so I can't use error messages to help me.&lt;/LI&gt;&lt;LI&gt;And ArcGIS Pro 2.6.8 doesn't support outputting console messages (&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/where-do-the-arcade-console-messages-go-to/m-p/1125076/highlight/true#M48931" target="_self"&gt;unlike Pro 2.9.2&lt;/A&gt;&amp;nbsp;+/-).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Does anyone have any tips for debugging Arcade code in that scenario?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 15:48:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-debug-attribute-rules-that-don-t-have/m-p/1159920#M375</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-03-31T15:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to debug attribute rules that don't have errors (console messages not supported)</title>
      <link>https://community.esri.com/t5/attribute-rules-questions/how-to-debug-attribute-rules-that-don-t-have/m-p/1161493#M386</link>
      <description>&lt;P&gt;Bud,&lt;/P&gt;&lt;P&gt;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.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;return{
    "errorMessage": Text()
}&lt;/LI-CODE&gt;&lt;P&gt;Although this may not work if the rule you have is doing something geometry-related.&lt;/P&gt;&lt;P&gt;~Jake&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:38:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/attribute-rules-questions/how-to-debug-attribute-rules-that-don-t-have/m-p/1161493#M386</guid>
      <dc:creator>Jake_S</dc:creator>
      <dc:date>2022-04-06T08:38:33Z</dc:date>
    </item>
  </channel>
</rss>

