Can I debug javascript code in webbrowser control in VS 2012

I would like to know if I can use the debugger in VS 2012 for javascript code in a webbrowser control for a winform application. I am not talking about debugging in a web browser such as IE, as that is not how I run the code. I tried to place a "debugger"; in my javascript code, but it still goes through it and doesn't stop.

Here is an example of how I use it.

function addDeleteButton(poly, imageUrl) {
        debugger;
        var path = poly.getPath();
        path["btnDeleteClickHandler"] = {};
+4
source share
1 answer

Thanks to Boris Generalov for this answer!

http://blogs.perl.org/users/mark_leighton_fisher.

JavaScript WebBrowser, .NET 4.0, VS2010 (Visual Studio 2010), .

  • Script ( IE, ) Internet Explorer.
  • HTTP- Internet Explorer.
  • Script Internet Explorer.
  • VS2010 Script Attach Process. , JavaScript (Script) .NET 4.0. ( .)
  • ; JavaScript.
  • , WebBrowser, (Ctrl-F5).
  • JavaScript;, VS2010.
  • ! JavaScript WebBrowser .NET 4.0.

IE VS 2012.

+13

Source: https://habr.com/ru/post/1547922/


All Articles