Hi,
I'm new to C# and Visual studio (2010).
I have created a new C# Windows Form project.
Inside of main() and have added two lines:
My question is why I can't see the two string variables inside of the Autos/Locals watch window when I set a breakpoint straight after them and hit debug.Code:static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Application.Run(new Form1()); string stra = "aaa";//line 1 string strb = "bbb";//line 2 }
When I create a console application I see them fine, but when it's a Windows Form application I cannot see them.
I have found people in Google saying that code optimisation might be enabled in the IDE settings, but it isn't.
Can anyone help me here?
Thank you.