title: Enable Debugging Javascript in Visual Studio (WebView Android app Xamarin)?
body: <p>I am building a Xamarin Android webview mobile app. I have gotten to a point that I need to debug some Javascript code but I cannot get the debugger to work on the razor views in Xamarin. Not a single breakpoint is hit on the client-side during debugging.</p>
  
  <p>I have tried using the below code to enable debugging of my web contents in my main activity <code>OnCreate</code> method. Link: <a href="https://developer.xamarin.com/api/member/Android.Webkit.WebView.SetWebContentsDebuggingEnabled/p/System.Boolean/" rel="nofollow noreferrer">Android.Webkit.WebView.SetWebContentsDebuggingEnabled </a>:</p>
  
  <pre><code>WebView.SetWebContentsDebuggingEnabled(true); 
  </code></pre>
  
  <p>I also tried using the <code>debugger</code> keyword in my script to see if I could be lucky.
  But none of the above seem to help the situation. </p>
  
  <p>Are there any pointers on how to enable client-side debugging in Xamarin? </p>