https://bugzilla.novell.com/show_bug.cgi?id=406371
Summary: The debugger only can inspect the first local variable of a method Product: Mono: Debugger Version: SVN Platform: Other OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: cli AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: mono-bugs@lists.ximian.com Found By: --- Try the following test case: using System; public class Test { public static void Main () { int a = 1; int b = 2; int c = 3; int d = 4; Console.WriteLine ("{0} {1} {2} {3}", a,b,c,d); Console.WriteLine ("Done"); } } When the debugger is stopped at the WriteLine line, it can only inspect the first local variable (a). See this example debug session: Mono Debugger (mdb) r Starting program: kk.exe Thread @1 stopped at #0: 0xb7919241 in Test.Main()+0x9 at /home/lluis/temp/kk.cs:7. 7 int a = 1; (mdb) n Thread @1 stopped at #0: 0xb7919258 in Test.Main()+0x20 at /home/lluis/temp/kk.cs:8. 8 int b = 2; (mdb) n Thread @1 stopped at #0: 0xb791925d in Test.Main()+0x25 at /home/lluis/temp/kk.cs:9. 9 int c = 3; (mdb) n Thread @1 stopped at #0: 0xb7919264 in Test.Main()+0x2c at /home/lluis/temp/kk.cs:10. 10 int d = 4; (mdb) n Thread @1 stopped at #0: 0xb7919272 in Test.Main()+0x3a at /home/lluis/temp/kk.cs:12. 12 Console.WriteLine ("{0} {1} {2} {3}", a,b,c,d); (mdb) n 1 2 3 4 Thread @1 stopped at #0: 0xb7919315 in Test.Main()+0xdd at /home/lluis/temp/kk.cs:13. 13 Console.WriteLine ("Done"); (mdb) p a (int) 1 (mdb) p b ERROR: No symbol `b' in current context. (mdb) p c ERROR: No symbol `c' in current context. (mdb) p d ERROR: No symbol `d' in current context. (mdb) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - mono-bugs@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-bugs