title: WebView2 - Call/Execute Javascript Functions
body: <p>The <code>InvokeScript</code> method was deprecated in WebView2 so I am trying to learn the new alternative. According to the Microsft documentation, we have to call the <code>ExecuteScriptAsync</code> method in order to run a script. I was able to create an async method that executes my entire javascript function as a string and it worked. However, I find this approach not easy to debug; the <code>ExecuteScriptAsync</code> never tells you if there is a syntax error ...</p>
  <p>How do you debug javascript code executed by the <code>ExecuteScriptAsync</code>?
  Is there any other option to call javascript functions (with parameters)?</p>
  <p>Thanks</p>