Solved

Debug classic asp

Posted on 2015-02-20
5
121 Views
Last Modified: 2015-02-20
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
Comment
Question by:jssong2000
  • 3
  • 2
5 Comments
 
LVL 32

Expert Comment

by:Big Monty
ID: 40621393
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
 

Author Comment

by:jssong2000
ID: 40621489
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
 
LVL 32

Accepted Solution

by:
Big Monty earned 500 total points
ID: 40621514
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
 

Author Closing Comment

by:jssong2000
ID: 40622008
Thank you!
0
 
LVL 32

Expert Comment

by:Big Monty
ID: 40622027
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now