Solved

Debug classic asp

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Bot attack question 11 60
Syntax for query to update table 2 39
IIS 7 and executing pages using localhost 16 24
ASP Classic Query that needs to display more information 18 31
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 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