adammarks / netcoreproto

.NET Core C++/CLI Prototypes
0 stars 0 forks source link

Mixed debugging doesn't work with C++/CLI #3

Closed adammarks closed 4 years ago

adammarks commented 4 years ago

I normally setup mixed debugging so I can debug both native and managed code Snag_1d19fd34

But when I do this I get this error when I hit my C++/CLI code ( when I do a Help->About in the app ) Snag_1d1b605e

I think this makes sense because "Mixed" debugging would normally probably mean Native + Managed .Net Framework.

I don't see an option for Native + Managed .Net Core though

mjrousos commented 4 years ago

Thanks for flagging this, @adammarks. I've run into it, as well.

@nguerrera, do you know what the expectation is for mixed-mode native/.NET Core debugging? As Adam points out, it doesn't seem to work well at the moment. Is there a place in a Microsoft repo we should be tracking this issue?

nguerrera commented 4 years ago

Hmm, thanks for reporting, there is an option for mixed native + core when you do devenv /debugexe (which I use a bunch to debug mixed) and I think on attach as well. This might be an issue with the property pages.

nguerrera commented 4 years ago

@olgaark Is there something missing to have the option for mixed (native + core) shown in the property pages? Is there a manual equivalent that can be done in the vcxproj in the meantime?

mjrousos commented 4 years ago

According to @olgaark, this will be fixed in 16.5 preview 2 (though there's a known issue with hitting native breakpoints before managed code runs).

adammarks commented 4 years ago

This is fixed now, there is a Mixed ( .NET Core ) option now: Snag_fb67bdc