Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
PersonalizeCloud Portal
Sitecore Personalize
        • Add a programmable decision
        • Create a programmable with the Code Assistant
        • Add a decision template
        • Examples of programmable decisions
        • Use custom fields
        • Including dates
        • Copy programmable decisions
        • Including print statements
        • Troubleshooting
    • Managing data systems
  • Using client-side JavaScript
  • Glossary
  1. Managing programmable decisions
  1. Sitecore Personalize
  2. Introduction to decisioning in Sitecore Personalize
  3. Managing programmable decisions
  4. Troubleshooting programmable decisions

Troubleshooting programmable decisions

Sitecore Personalize helps you validate the syntax of the code in the programmable decision by providing you with a Validate button. It is best practice to periodically click the Validate button as you write the programmable decision, not just before saving.

You can still troubleshoot a programmable decisions even though the code syntax is correct. To facilitate this, make sure to include print statements in the programmable decision.

Later, when you test the decision model variant you can view the results of the programmable decision on the Logs tab. This is very useful for checking that any functions and other code is working as expected.

If you have suggestions for improving this article, let us know!

© Copyright 2026, Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use