|
|
|
date: Fri, 2 May 2008 11:29:34 -0400,
group: microsoft.public.msdn.general
back
Re: Where is Microsoft Script Debugger
Hi,
I made some progress with this. Microsoft's website was extremely unhelpful.
Environment:
Vista SP1
Visual Studio 2008
Internet Explorer 7
1. Use an account with admin rights to go into IE7:Tools:Advanced, then
make sure the options to disable script debugging are NOT ticked.
2. Create force_debug.hta text file, see the code below
3. Run the file. You should see it open perfectly in an IE7 window
saying "hello" and "goodbye". Close the IE7 window.
4. Now uncomment the 'debugger' statement in the init() function and run
the file again. This time you should get an error asking if you want to
debug, say yes, and then choose the default options for debugging in the
window hiding behind your app, then tell it to "break" in the next dialog.
Visual Studio 2008 will open, your text file will appear, and you'll be
sitting at a break point. All debugging options will now be available.
Unfortunately, if you try to open the file in VS2008 directly, the
option to debug will NOT be available.
<html>
<head>
<script language="JScript">
function init() {
trace("1. Hello World");
//debugger
trace("2. Goodbye");
}
function trace(sText) {
var temp = log.innerText;
log.innerText = temp + "\n" + sText;
}
</script>
</head>
<body onload="init()">
<pre id="log"></pre>
</body>
</html>
--
Gerry Hickman (London UK)
date: Fri, 02 May 2008 21:42:50 +0100
author: Gerry Hickman am
|
|