|
IE process can be bound, so you can perform JS debugging
Or add "debugger" to javascript, so you will be prompted if you want to debug when this code is reached. Of course, the premise is that you have turned on the "Allow script debugging" switch in IE (if you remember correctly, it should be Tools-> Internet Options-> Advanced-> Browse, mine is ENU IE7, lz can do it by itself Adjustment)
Such as
function test ()
{
var s = 1;
debugger // Run to this and it will stop and ask if you want to debug
var ss = s * 2;
} |
|