So you're writing a new ASP script and you finally think everything
is ready to go. You launch a browser to test it and, wouldn't you
know it, you run into one of those ever so helpful error messages
that looks something like this:
Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method.
/filename.asp, line 147
Now you've got to go back to Visual Studio (or Visual Studio.NET)
to try and hunt down the problem. Wouldn't it be nice if there
was an easy way to find it quickly? Well there is...
Visual Studio has a built-in "Go To..." command that will jump directly
to any line you'd like. Simply double click on the line number display
at the bottom of the Visual Studio window (the one that says something
like "Ln 23 Col 45 Ch 45") and a little dialog box will appear. Enter
the line number from the error message and you'll find yourself right at
the offending line of code.
Oh... and for all you keyboard junkies out there, there's no need to
ever move your hands from the keys. A simple little Ctrl+G
brings up the same dialog box. Just type in the line number and hit
Enter and you're back to coding without ever having to touch
that silly mouse.
Thanks go out to Kirk Unangst for prompting me to write this tip.
If you have a tip you would like to submit, please send it to:
webmaster@asp101.com.