• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 157
  • Last Modified:

Debug classic asp

Hi Expert,

I try to debug my classic asp app.
My PC is Windows 7 Enterprise with Service Pack 1.
I set to “True” in IIS to both “Enable Client-side Debugging” and “Enable Server-side Debugging”.  I set in both “Default Web Site” and my app in IIS.

I launched the app without debug “Ctrl F5”.
And then I attached process iexplore.exe(my app’s process).
But my break points are still not hit.
Any comment or help will be appreciated.
0
jssong2000
Asked:
jssong2000
  • 3
  • 2
1 Solution
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
debugging in classic asp is extremely hands on, and in my 14+ years of working with the language, i've yet to find any good external debugger for server side debugging (I assume that's what you're looking for). instead, I set error reporting to the browser (by not using on error resume next) and putting Response.Write statements where I think the error may appear. this may seem tedious (and it is at first!) but I find it to be the quickest way to diagnose the problem.

you could also use the ERR object
on error resume next

dim str : str = "abs'
if Err.Numer <> 0 then Response.Write Err.Message

Open in new window


instead of writing it out to the screen, you could write it to a log file or save it to a session variable and email it to yourself

if you insist on using a debugger (again, I think you'll waste more time than save), have a read at this article, note how it doesn't reference Visual Studio? that's because VS doesn't support classic asp debugging

and if you have specific issues you need help with, you can always post them here!
0
 
jssong2000Author Commented:
Very appreciated your information. Actually it's very useful.
I was able to debug legacy asp code in VS when using old IIS.
I believe there is way to debug classic asp in newer OS, IIS and VS.
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
the only other tool i've come across that is remotely any good is http://www.remotedebugger.com/.

other than that you're going to have a hard time and waste a lot of energy trying to get VS to do any debugging. the only other advice I can offer is to make sure you're opening the site through IIS and NOT the file system, otherwise it def will not work (VS uses it's own internal web server to process pages)
0
 
jssong2000Author Commented:
Thank you!
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
why only a grade of a B? I answered your question fully and even gave you better advice on how to debug
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now