Re: How to Enable Mixed Mode Debugging in VS2005 Asp.Net Web Site?



Oleg Starodumov wrote:


I need to extend and maintain a set of legacy VC++ 6
ATL dlls and call them via Asp.Net. This works but I can't
step into them or debug them. Every time I do, they step
over, which is a bit of a nightmare. If I ASSERT
etc in the dlls I can't 'retry' either etc.

Everywhere I look it says to switch on 'mixed mode
debugging', but there is NO such setting in this
sort of web site! You can have debugging on / off
and that's it.


I have very little experience with ASP.NET, so it might be plain wrong. Anyway...

Do you mean that this kind of project does not have "Enable unmanaged debugging"
setting in Project properties | Configuration Properties | Debugging ?

Hi, thanks for replying. I'm mostly a C++ guy myself which is why I'm
so eager to get access to 'my' bits in a live asp system :)
Even as a non asp.net guy you can easily replicate:
Just open VS2005, create a new 'web site | asp.net web site'. In the solution
you'll have the solution, then the project node. It's different from a
'normal' project. You have 'property pages' instead of 'properties'
and the only debug option is 'on/off'. Nothing to do with managed/unmanaged
any more...

Is it possible in this case to attach debugger to the running server process?
If so, you could use Select button in Attach to Process dialog to select
the debug engines you need, including the native one.

Ahh thanks, I've had a go at that, and it worked. Also, if I launch *without*
debugging and cause an assert in the C++, I can attach via VC++6.
(Preferred to VS2005 as that won't let me watch some variables?)
Unfortunately if I launch debugging in VS2005 and it asserts retrying
seems to do strange things, and doesn't allow debugging.

But .. it's a bit of a fiddly pain, when you are so used to F5ing. I find
it amazing that there is no way to do this directly though, no setting - I
can't be the only person wanting to do this? I think I read that earlier
asp.net used to have a proper 'project' but they moved to a sort of file
based 'implicit project. But there are far fewer project settings and they
seem to have completely forgotten about unmanaged code etc. Unless that's
'deliberate' .. is unmanaged code now considered 'evil'? :)

I'm still interested to know if there is a proper way round this. It seems
like an important setting is now missing.

Brian.
.


Loading