The previous blog post introduced how to use IE Developer Tools to debug Javascript. Here we will talk about how to use Visual Studio to debug JavaScript, or the previous example.
Before using Visual Studio, you must
- Disable the 'Disable script debugging (Internet exlpore) 'option of IEHook down
- And enable IE
Here we use Visual Studio 2008 and IE8
1. Use test.html before vs2008to directly drag and drop it. It is still a breakpoint on return p.
2. debug> attach to process select icycler.exe attach to start debugging
3.use IE to open test.html. Refresh the page and you will find that it is broken correctly.CodeIt's a little troublesome here. You have to perform F11 and F10 on your own to sum up return P (ie developer tools is very convenient in this regard ).
Let's take a look at the final result:
In this way, Visual Studio is successfully used to decrypt the JavaScript code. The result is the same as that of IE Developer Tools!