• Answers
  • Web
Originated from
Advanced .NET Debugging

Debugging .Net assemblies called via COM

Is it possible to debug a .Net assembly that is exposed and called through a COM interface?

I have been trying to get this to work with no luck. On one machine I have managed to get it to step into VS2k5 using a System.Diagnostics.Debugger.Break; statement but in no circumstances will it stop on a regular breakpoint!


Share Send to a friend Watch Report
 
 

Posted Answers

 
207 helpful answers

They're coming to take me away, Ha-haaa!

Advanced .NET Debugging Blog

My personal blog

Try running your application normally.

In VS2005 use the "Attach" feature in the debug menu after you are sure your .NET code ran at least once.

Then you can attach and you should be able to debug it.

Make sure you are using the debug build to do so, so that the debug symbols files will contain a correct reference to where the source code files are.

Posted 2008-01-16T13:04:04Z
Helpful?(2)
Rated as Best Answer

Sign in to participate

Got an answer for DaveP? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

Debug

When I surf to the this site(yedda) i am getting an error:debug. I try to do debug and I can't do it. Do u have any idea what to ...
Submitted by Guyop   3 years ago.
  • viewed 894 times
Last answer posted 3 years ago by Yaniv


Q:

Debugging c# without Visual-Studio installed?

How do I debug .NET application when Visual-Studio is not installed? Is there an independant debugging utility for C#, as WinDBG ...
Submitted by Paz   2 years ago.
  • viewed 2990 times
Last answer posted 2 years ago by Eran


Q:

I need to debug a new driver I develo...

I need to debug a new driver I developed for Linux. what are the best debugging tools?
Submitted by jimbo   4 years ago.
  • viewed 1081 times
Last answer posted 1 year ago by muthu12



» More...

Explore Related Posts in Forums

How to debug COM object in Visual Studio 6.0 that is created in an ASP page...

Of me figure out how to debug the code in the actual COM component. I'm able to build it in debug I have an old C++ COM component which has to stay in Visual Studio 6.0 format. I can't for the life Are you trying to debug inside the COM component? Was it written in C++, VB, or something else

Debuge the COM(ATL) [modified]

MFlashCtrl, DVASPECT_CONTENT, hdcSurface, &rect); lpdds->ReleaseDC(hdcSurface); } When debugging call. This problem is totally driving me crazy... PLEASE SOMEONE HELP.I suspect that it's a COM Hi guys, I have two vectors of string and I'm looking for an easy way to find the first vector sequence or sub-sequence into...

How can I debug a C# COM assembly when it's being called from a native win...

I'm developing a C# assembly which is to be called via COM from a Delphi 7 (iow, native win32 to really want to use Visual Studio to debug the C# code while it's running. Set breakpoints, step Place the following in the method you wish to debug: #if DEBUG
» More...
Powered by
Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
  • Answers
  • Web
Copyright © 2006-2009, Yedda Inc. and respective copyright owners · CC License