Debugging ASP application

---------------------------
Microsoft Development Environment
---------------------------
Unable to find project on server. Unable to set server into correct debugging state automatically. You may not be able to debug ASP pages. Do you want to continue launching the debugger?
---------------------------
Yes   No   Help  
---------------------------
ASPDebuggin.png
bvs_reddyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

bvs_reddyAuthor Commented:
padas:

this is for Classic ASP
0
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
I use classic asp but code on a MAC.  I find most of my basic errors are spelling.  It is a good choice to use option explicit at the top of your page.

<%option explicit%>

This will force you to dim each variable.   As example this will throw an error because the variable success is created but sucess was not. Without option explicit, you may rack your brains trying to figure out the problem in your code unless you are great at picking out spelling errors in 1000 lines of code.

<%option explicit%>
dim success
sucess=request("success")

Open in new window


Another trick I use when encountering issues is tracking my program flow by adding a bunch of response writes in strategically located lines of code.  If I get an error and see "step 4" was never written to the page, I know to concentrate in my for next loop.

<%
response.write "step 1<br>"
'code 
':
'code
response.write "step 2<br>"
for each x in y
response.write "step 3<br>"
next
response.write "step 4<br>"
%>

Open in new window


Hopefully somebody else that uses visual studio may chime in.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bvs_reddyAuthor Commented:
I've requested that this question be deleted for the following reason:

This was fixed
0
Simple Misconfiguration =Network Vulnerability

In this technical webinar, AlgoSec will present several examples of common misconfigurations; including a basic device change, business application connectivity changes, and data center migrations. Learn best practices to protect your business from attack.

bvs_reddyAuthor Commented:
This was taken care
0
bvs_reddyAuthor Commented:
Close this
0
bvs_reddyAuthor Commented:
Close this
0
bvs_reddyAuthor Commented:
I've requested that this question be deleted for the following reason:

Close this
0
bvs_reddyAuthor Commented:
Close
0
bvs_reddyAuthor Commented:
I've requested that this question be deleted for the following reason:

Close this
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.