Quite old but a gr8 post about how to debug javascript and VBScript files from Visual Studio. From VS 2005 there is a minor change with script files listed availabe through Debug ->Windows->Script Explorer while the debugger is attached to IE

IEBlog : Scripting Debugging in Internet Explorer

Enjoy !