If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > How to debug a ASP code

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-14-03, 06:43
Loas Loas is offline
Registered User
 
Join Date: Jan 2003
Posts: 30
Question How to debug a ASP code

Hi Guys!

How to debug a ASP code using Visual InterDev 6.0, like we do in VB?

Is it possible?

I´m using Windows XP Professional + IIS + SQL

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-14-03, 17:37
Memnoch1207 Memnoch1207 is offline
Registered User
 
Join Date: Jan 2003
Location: Midwest
Posts: 138
Do alot of Response.Writes()!
Reply With Quote
  #3 (permalink)  
Old 01-15-03, 03:31
darkvalley darkvalley is offline
Registered User
 
Join Date: Aug 2002
Location: Netherlands
Posts: 11
Also very helpfull is to turn off the option in IE:
"show user friendly http error messages" found under

tools / internet options / "tab" advanced / "section" browsing

The same applies for IsAdmin where you'll defenitly want to turn on, enable client side debugging.

Hope this will help u as well.
__________________
Never try to beat your oponent. Let your oponent try to beat you.
Reply With Quote
  #4 (permalink)  
Old 01-15-03, 07:26
Frettmaestro Frettmaestro is offline
Registered User
 
Join Date: Jan 2003
Location: London, England
Posts: 106
Unfortunatly there is now way to debug asp-code like you do in other non-scripting languages. The only thing you can really do is put alot of Response.Write in your code and the occasional Response.End to stop page-execution. Allthough this method is really lame, once you get used to it it works pretty good.
__________________
Frettmaestro
"Real programmers don't document, if it was hard to write it should be hard to understand!"
Reply With Quote
  #5 (permalink)  
Old 01-15-03, 08:08
Loas Loas is offline
Registered User
 
Join Date: Jan 2003
Posts: 30
Thanks for the help, guys...
Reply With Quote
  #6 (permalink)  
Old 09-23-03, 16:54
GIS-Miami GIS-Miami is offline
Registered User
 
Join Date: Sep 2003
Posts: 3
I'm also running Visual Studio 6 on Windows XP Prof. + IIS + SQL. With Windows 2000, I was able to create a project in Visual Interdev w/an assortment of .asp, .htm, & javascript pages. Throughout development of these pages, I was able to debug (including my .asp pages w/no problem) using VI 6.0. Are you saying that VI 6.0 isn't compatible w/Windows XP in that it will not debug .asp pages AT ALL??? There's no work around? If so, what software application(s) can be used to develop & debug ASP pages in Windows XP???
Reply With Quote
  #7 (permalink)  
Old 09-24-03, 04:35
Cos Cos is offline
Registered User
 
Join Date: Sep 2003
Posts: 6
I don't think that you can really debug ASP pages in whatever that is. And that is because it is a scripting manguage. You are not compiling the scripts, you are not doing anything like that. You can't compare VB with VBScript (asp). Debugging is not finding syntax errors
In asp you have to make the debugging manually (response.write)

Enjoy
Reply With Quote
  #8 (permalink)  
Old 09-24-03, 18:40
GIS-Miami GIS-Miami is offline
Registered User
 
Join Date: Sep 2003
Posts: 3
Question

I'm sorry, but that's not exactly where I meant to go w/the ???

My dilemna is same as that posed in http://support.microsoft.com/?kbid=312880

My project isn't to debug the asp code contained in my pages as per say... I'm trying to enable client script debugging of Active Server Pages on a Windows XP- Based Computer. This feature is available with Visual Interdev. Is there someone in the audience whose VI 6.0 ASP Debugging is functioning properly. If so, what are your configurations???
Reply With Quote
  #9 (permalink)  
Old 10-02-03, 17:43
GIS-Miami GIS-Miami is offline
Registered User
 
Join Date: Sep 2003
Posts: 3
Thumbs up

PROBLEM SOLVED!!! Operating System: Windows XP Pro/Software Package: Visual Studio/Software: Visual Interdev 6

Original Error Message: “Unable to set server into correct debugging state automatically” when trying to debug an asp application locally using Visual Interdev 6.

One important change is to set DCOM Identity on Catalog Class to “Interactive User”. This is preferred in the case local debugging.

Just FYI, these are the steps that happen behind the scenes as part of automatic debugging.

Mainly they are:
1. Set the application protection for the Virtual Dir/Application in IIS to “High Isolation”
2. Enables the debugging flags for the application in IIS
3. Creates a COM+ package corresponding to the application being debugged and the identity is set to the user when you enter credentials to start debugging. It is possible for the COM+ package to sometimes become corrupted. In which case you'd delete that instance from the COM+ applications.

Be sure to set the identity on the COM+ package to your Domain account, debugging should worked just fine. Also, take a look at the White Paper below which has walk thrus & most of the known issues with debugging:
http://msdn.microsoft.com/library/te...idebugging.htm

Last edited by GIS-Miami; 10-02-03 at 17:50.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On