debugging atl from asp

I have an atl object that I'm trying to debug from ASP.  I've had some answers as to how to debug the code, and I've tried them but to no avail.  I'm fairly new to ATL, and not so new to asp.  If someone had some explicit instuctions on how to do this I would very much appreciate it.  I've read in MSDN about attaching the the inetinfo process in VC and stepping in but I haven't been able to get that to work.  The other suggestion that I've had is to register this object with MTS and debug like that.  I would love to hear more about either method or a new one, but I'm afraid that I need a bit more detail than someone who has allot of experience with ATL.

Thanks

Chris
cshebibAsked:
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.

cshebibAuthor Commented:
I've created a simple ATL object that returns a string to me in ASP.  I registered it as an inproc server in MMC.  It still won't step into the code for me.  I also tried to place a DebugBreak() line in the code where I want to step in but it blew up on me from the browser.  Does anyone have any ideas at all - there must be a step that I'm missing somewhere.

Thanks,

Chris
0
juansanchezCommented:
Drag and Drop the ATL COM in a MTS package,


Add MTS exe PATH in project->settings->debug->"Executable for debug session"

C:\winnt\system32\mtx.exe

AND in the "Programs arguments" Add the COM's CLSID(in MTS package over ATL COM rigth click->properties)

/p:{CLSID}

Click OK

Set breakpoints in your code..

press F5

Open your Browser and call your asp that uses the ATL COM

Debug stop in the first breakpoint

is a god method, I use this


thanks...

JISR
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
cshebibAuthor Commented:
Thanks very much for the answer.  I just found the article that explains this technique last night and got it working. It is a very good technique, and you explained it very well.

Thanks again,

Chris
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
Microsoft Development

From novice to tech pro — start learning today.