I have .NET service (C#) that uses a couple of c++ libraries. I have a desperate need to get into C++ methods but when I set the breakpoints they get disabled in the run time.
Where to look at?
I set "Attach Debugger" in C++ project settings but this does not seem to change a bit.
Please advice. Where to look at?
The libraries are quickfix engine if anyone cares.
You need to enable unmanaged code debugging for your project. To do this:
By default, a project targeting the .NET Framework will only debug managed code. You have to tell it explicitly that you want to debug unmanaged code.
If that doesn't fix the problem, also make sure that the "Enable Just My Code" setting is not turned on in the debug settings found in the Options dialog.
Does not work when i attach to process. Only works when i run from the studio
Correct. When you attach to a process, your project isn't [necessarily] loaded, and Visual Studio doesn't pay any attention to its settings.
In this situation, you need to set the appropriate options in the "Attach to Process" dialog. To do so:
Go to Project Properties
-> Debug
-> and set the checkbox
Enable unmanaged code debugging
HTH
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With