I am trying to debug Exercise2_2.cs file but when I hit f5, Visual Studio always debug Exercise2_1.cs only. In this case what should I do in order to get VS to run Exercise2_2.cs thanks.
CodePudding user response:
Instead of pressing F5 (Run Solution), assuming you have the C# KeyBindings press F10 and F11 to step through the code and find the line of code that is instantiating Exercise2_1.
It would be even simpler to do a find in the code base for "Exercise2_1" and change it to Exercise2_2.
Note the class names may be different to the file names, so open the c# files and confirm they're called Exercise2_1 and Exercise2_2.