- In Visual Studio, select Debug
Attach to Process (or press
Ctrl+Alt+P) to open the Attach to Process dialog box.
- Select the code types. Choose both if you want to do the mixed debugging.
- Managed(.NET Core, .NET 5+) for .NET Core codes debugging
- Native - C/C++ for native code debugging
To facilitate your debugging
- Switch your configuration to Debug.
- Add necessary calls in your class so that you can understand the state of your program.
Debug.WriteLine("Just a test");