I'm following C++ tutorials whilst making notes in Visual Studio 2019. Handy to have my archive for future reference.
I'm trying to find a way to test individual projects quickly, can anyone advise on the quickest method to do this?
I was unloading projects, but the problem is that you then don't have access to them projects; which isn't helpful as I want reference to files as I go so I can quickly ascertain forgotten syntax.
With this in mind my method was to use the "Configuration Manager" & turn off projects from the build process, clean the solution, right-click on certain files in the particular project which I want excluded & individually select the files & exclude them from the build process, build the solution again then step through the code.
The problem is I'm finding that often I find myself in the debugging window going over the previously debugged file.
Can anyone advise what I'm doing wrong/ a better way to work here?
Thanks Salem, read the help files several times, are you suggesting I create Solutions for every single tutorial? That's not very practical. I'll end up with hundreds of solutions on very similar topics. I could put them under solution folders to group similar tutorials I suppose, but seems a bit bloated?
Thanks for your rapid response. Trying to upload a pic but doesn't seem to be a feature to upload pics.
Back to my original post then, can anyone advise as to why the previous build is debugged? I have all projects being built for debugging in the configuration manager:
1 - Clean solution; removing all object code in the solution;
2 - Select project > build > project only; there should now be only an object binary for this project; thus the only thing that should run is this project;
3 - F11 - stepping through code a different project is being tested.
EDIT - I'm back to unloading projects atm, which ensures the object code isn't built for irrelevant projects at that moment in time. But sadly I'm loosing the ability to see what's in the unloaded projects. I have to reload them to reference things, then unload them again; not ideal!
It also seems that despite cleaning the solution, then selecting an individual project to be built does not actually ensure that only that project is built.
Hopefully someone in time will advise, n.b. no settings have been changed differing from default, except for the ones mentioned.