When I debug my dll targeting .net 3.5, I have to attach to a process and select the option to debug .net 3.5 code as opposed to 4.0+. Apparently you can't debug both do to some incompatible changes.
Problem is I don't know how to start this process from Visual Studio in a way that I can modify the code while it is running. If I use the attach to process menu option the process has to be already running and changes are not reflected until I stop the process and rebuild the dll. How do I host the process in Visual Studio to debug 3.5 code and gain the extra debugging awesomeness being able to modify code and more easily run a debug session?
I'm using VS 2015.
Hei, I often got this problem. If you start another application and want to 'add' the dll to the runtime, please try the following.
Go to your (dll's) project properties -> Debug -> start external program . If you need start parameters, you can add them below.
Now when you start the debugger ( with the befor modified config ) the application starts up and the debugger is on. Now you maybe need to start something related to the dll you are debugging to 'hit' a breakpoint & you are able to modify the debugging code.