title: Best way to test/debug javascript mappers/policies in Keycloak
body: <p>I am new to Keycloak and have been trying to setup javascript based authz policies and client mappers. I was wondering what is the best way to debug such mappers or policies.</p>
  
  <p>Right now, if there are any errors within the script I can only find out it in the server logs, but is there a way where we can use something like alert or console.log; in both cases the server logs mentions:</p>
  
  <pre><code>Caused by: &lt;eval&gt;:18 ReferenceError: "alert" is not defined
  Caused by: &lt;eval&gt;:18 ReferenceError: "console" is not defined 
  </code></pre>
  
  <p>It will be really helpful if when the script runs , if i can atleast log the values of properties or attributes to check whats going on</p>