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 > Debug set up on Interdev 6

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-18-03, 18:30
ndutura ndutura is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
Debug set up on Interdev 6

Hello,

I'm a newbie in ASP. I have an ASP page that calls on a COM object. The COM code is failing at some point. Is there a way to configure Interdev so I can walk through the code, from the ASP to the COM object. Rather, the code will jump back and forth from the ASP to COM and vice versa. Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 11-19-03, 18:23
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Assuming your IIS server and your com dev machine is on the same box,... you should be able to start your vb com project running, which will create a temporary verson of the object. You asp pages should then link to that temporary object and you should be able to debug interactively... from memory...
Reply With Quote
  #3 (permalink)  
Old 11-19-03, 18:28
rokslide rokslide is offline
Registered User
 
Join Date: Nov 2003
Location: Christchurch, New Zealand
Posts: 1,617
Darn, got half way though this reply and missed something....

I never had much success interactively debugging the asp itself though (I dunno if you can) but you can pop out debugging messages to dtermine where you are up to and the value of varriables and the like.
Reply With Quote
  #4 (permalink)  
Old 11-21-03, 13:25
ndutura ndutura is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks rocslide, I'm still trying to get it to work. There seems to be some hooks missing because I'm not sure any more how to configure debug such that I can step through my asp and com code as if I was on one page or module of code. I'll let you know if I figure this out. Thanks again.
Reply With Quote
  #5 (permalink)  
Old 11-21-03, 17:02
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Was the com object written in vb and do you have access to the source code ?
Reply With Quote
  #6 (permalink)  
Old 11-21-03, 17:04
ndutura ndutura is offline
Registered User
 
Join Date: Nov 2003
Posts: 3
Yes, the COM obj was in VB and I have both code on the same environment, different folders of course.
Reply With Quote
  #7 (permalink)  
Old 11-21-03, 17:13
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Create a vb project that includes the com object - this is the simplest way to debug the com object.
Reply With Quote
  #8 (permalink)  
Old 11-21-03, 17:19
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Or you can do the following:

Open the com objects project - run the application (putting a breakpoint at the beginning of the code that is causing the problem).
Open visual interdev - put a breakpoint in the asp page where the objects method is called.
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