Solved

Debug classic asp

Posted on 2015-02-20
5
134 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 33

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 33

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 33

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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

724 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