Access the web console of the embedded WebBrowser

I have a .NET application that launches a built-in web browser (System.Windows.Forms.WebBrowser). I cannot figure out how to access the web console, which I can normally access by pressing f12 (equivalent to the firebug console). Is there any way to enable this? Also can this redirect this output to a file?

+7
source share
3 answers

The built-in web browser does not support ActiveX controllers, so there is no web console.

+3
source

Have you tried using FirebugLite?

https://getfirebug.com/firebuglite

Include this script inside your page and you will have a lightweight version of firebug that you can use to debug your JS.

<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js"></script> 
+11
source

you can use virtual studio to debug it

  • start application
  • Open "attach to dialog" with debug-> attach to process
  • In the application, select "Script" to select
  • Then select the process you want to debug.
0
source

All Articles