p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_components thread: Trying to debug my COM object with IIS


Message #1 by computerdeveloper@h... on Wed, 19 Jun 2002 22:39:49
I was wondering if anyone could tell me how I would be able to step 
through my COM object when IIS calls it?  I have tried a few things.  Like 
putting ::DebugBreak();, i've also tried attaching to the process and 
telling the SCM to allow the server to interact with the desktop and 
adding my debug version of my dll to additional dll's in settings->debug 
tab.  Nothing seems to work.  When I attach, it says I dont have debug 
code for this process, i just press ok because I don't have debug code for 
IIS, I then bring up my page which calls the COM object but the the places 
i have my breakpoints never get called.  So i was wondering if anyone can 
help me out?  Thanks 
Message #2 by "Joe Hughes" <JoeHughes@M...> on Wed, 19 Jun 2002 23:09:42 +0100
Hi "computerdeveloper", 

You can debug COM components from VB6 in design time. When you feel
you've got your component into a ready state, do START-FULLCOMPILE, then
when your ASP page calls the component, as long as you've set
breakpoints you will be able to step through the code.

If you want to debug multiple components that may have
inter-dependencies then in one of your projects, goto FILE-ADD PROJECT
which will result in a project group. From here if you call one
component from another you'll still be able to step through.

Obviously this only applies to VB

HTH

Joe Hughes

-----Original Message-----
From: computerdeveloper@h...
[mailto:computerdeveloper@h...] 
Sent: 19 June 2002 22:40
To: ASP components
Subject: [asp_components] Trying to debug my COM object with IIS


I was wondering if anyone could tell me how I would be able to step 
through my COM object when IIS calls it?  I have tried a few things.
Like 
putting ::DebugBreak();, i've also tried attaching to the process and 
telling the SCM to allow the server to interact with the desktop and 
adding my debug version of my dll to additional dll's in settings->debug

tab.  Nothing seems to work.  When I attach, it says I dont have debug 
code for this process, i just press ok because I don't have debug code
for 
IIS, I then bring up my page which calls the COM object but the the
places 
i have my breakpoints never get called.  So i was wondering if anyone
can 
help me out?  Thanks 
 
---
You are currently subscribed to asp_components as: joehughes@m... To
unsubscribe send a blank email to
%%email.unsub%%



Message #3 by "Gerhard Wentink" <gerhard@d...> on Thu, 20 Jun 2002 07:43:01 +0200
Its also possible to debug a component with Visual Interdev.
Check this article:
http://support.microsoft.com/search/preview.aspx?scid=kb;en-us;Q200998

Regards,

Gerhard Wentink

>-----Original Message-----
>From: Joe Hughes [mailto:JoeHughes@M...] 
>Sent: Thursday, June 20, 2002 12:10 AM
>To: ASP components
>Subject: [asp_components] RE: Trying to debug my COM object with IIS
>
>
>Hi "computerdeveloper", 
>
>You can debug COM components from VB6 in design time. When you feel
>you've got your component into a ready state, do 
>START-FULLCOMPILE, then
>when your ASP page calls the component, as long as you've set
>breakpoints you will be able to step through the code.
>
>If you want to debug multiple components that may have
>inter-dependencies then in one of your projects, goto FILE-ADD PROJECT
>which will result in a project group. From here if you call one
>component from another you'll still be able to step through.
>
>Obviously this only applies to VB
>
>HTH
>
>Joe Hughes
>
>-----Original Message-----
>From: computerdeveloper@h...
>[mailto:computerdeveloper@h...] 
>Sent: 19 June 2002 22:40
>To: ASP components
>Subject: [asp_components] Trying to debug my COM object with IIS
>
>
>I was wondering if anyone could tell me how I would be able to step 
>through my COM object when IIS calls it?  I have tried a few things.
>Like 
>putting ::DebugBreak();, i've also tried attaching to the process and 
>telling the SCM to allow the server to interact with the desktop and 
>adding my debug version of my dll to additional dll's in 
>settings->debug
>
>tab.  Nothing seems to work.  When I attach, it says I dont have debug 
>code for this process, i just press ok because I don't have debug code
>for 
>IIS, I then bring up my page which calls the COM object but the the
>places 
>i have my breakpoints never get called.  So i was wondering if anyone
>can 
>help me out?  Thanks 
> 
>joehughes@m... To
>unsubscribe send a blank email to
>%%email.unsub%%
>
>
>
>
> 
>%%email.unsub%%
>
>


  Return to Index