csoltenborn / GoogleTestAdapter

Visual studio extension that adds support for the C++ testing framework Google Test.
Other
143 stars 100 forks source link

Add ManagedCOREandNative #317

Open davidsanda opened 3 years ago

davidsanda commented 3 years ago

I have a gtest code, that uses .net core 3.1 libraries. Obviously, i want to debug them. However debugger engine only has Native and ManagedAndNative (and VsTestFramework, which is useless) which is for Managed Framework code. Thank you. Untitled

csoltenborn commented 3 years ago

Thanks for your feature request. I thought that this might be a quick win, but are not that sure any more. The thing is that the debugger engine is configured by making use of the constants defined in this class - there you find NativeOnly and ManagedAndNative, but nothing related to Core. For reference: The debugging engine is configured here.

I do not have the time right now to look deeper into this, but if you can tell me how to attach the according debugger engine, I might (or might not ;-) ) be able to provide that enhancement in no time.

davidsanda commented 3 years ago

Hello Christian, I do now know how to do it. It is far from simple, as you also need to load coreclr and documentation is less than clear. Of the Test Adapters currently available, mixed mode (core) debugging only works with Boost Adapter. No other adapter supports it. I guess taking a look there would help you quickly. From what i gather, they take the debug engine from the project configuration instead of making this choice explicit.

cheers

David

On Tue, Nov 3, 2020 at 8:07 AM Christian Soltenborn < notifications@github.com> wrote:

Thanks for your feature request. I thought that this might be a quick win, but are not that sure any more. The thing is that the debugger engine is configured by making use of the constants defined in this class https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.vsconstants.debugenginesguids?view=visualstudiosdk-2019

I do not have the time right now to look deeper into this, but if you can tell me how to attach the according debugger engine, I might (or might not ;-) ) be able to provide that enhancement in no time.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/csoltenborn/GoogleTestAdapter/issues/317#issuecomment-720944149, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI47DO2UWNDI4YS34EJGKBLSN6T4JANCNFSM4TF5ULMQ .

csoltenborn commented 3 years ago

Then this will have to wait until I have more available time - sorry for that...