Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Debug classic asp

Posted on 2015-02-20
5
Medium Priority
?
147 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 34

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 34

Accepted Solution

by:
Big Monty earned 1500 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 34

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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

636 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