Please do not reply to this email- if you want to comment on the bug, go to the URL shown below and enter your comments there.
Changed by [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=79827 --- shadow/79827 2006-11-04 12:47:20.000000000 -0500 +++ shadow/79827.tmp.29378 2006-11-04 12:47:20.000000000 -0500 @@ -0,0 +1,94 @@ +Bug#: 79827 +Product: Mono: Debugger +Version: unspecified +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: backend +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: mdb ignores breakpoints in event handlers + +I am using mono-debugger-0.30. And mono and mcs from the subversion repository. + +Consider the test case at the end of this description. When I set a +breakpoint in MyClickedHandler, then run the application with mdb and click +on the widget, the debugger doesn't stop the execution but just lets the +event handler get executed. + +My expectation was that the debugger stops the execution of the test +program when entering MyClickedHandler function. + +Here my mdb session: + +--- +Current directory is /home/jtocancipa/ +Mono Debugger +(mdb) file GtkTest.exe +file GtkTest.exe +Executable file: GtkTest.exe. +(mdb) r +r +Starting program: GtkTest.exe +Thread @1 stopped at #0: 0x400170b0 in GtkTest.Main()+0x20 at +/home/jtocancipa/GtkTest.cs:7. +(mdb) show modules +show modules + Id Group load? step? sym? Name + 7 corlib y y y mscorlib, Version=2.0.0.0, +Culture=neutral, PublicKeyToken=b77a5c561934e089 + 23 managed y y y glib-sharp, Version=2.10.0.0, +Culture=neutral, PublicKeyToken=35e10195dab3c99f + 24 managed y y y atk-sharp, Version=2.10.0.0, +Culture=neutral, PublicKeyToken=35e10195dab3c99f + 6 runtime y n y /home/jtocancipa/tmp/local/bin/mono + 22 managed y y y gtk-sharp, Version=2.10.0.0, +Culture=neutral, PublicKeyToken=35e10195dab3c99f + 25 corlib y y y System, Version=2.0.0.0, Culture=neutral, +PublicKeyToken=b77a5c561934e089 + 8 managed y y y GtkTest, Version=0.0.0.0, Culture=neutral, +PublicKeyToken=0907d8af90186095 +(mdb) break GtkTest.cs:21 +Breakpoint 1 at GtkTest.MyClickedHandler(System.Object,System.EventArgs):21 +(mdb) cont +cont //<==here the test program runs and I click on the widget +Thread @1 exited normally. //<==at this point I just close the test program +(mdb) Process #1 exited. +Target exited. +--- +using System; +using Gdk; +using Gtk; + +public class GtkTest { + public static void Main () { + Application.Init (); + + Button b = new Button (); + b.Clicked += MyClickedHandler; + + Gtk.Window w = new Gtk.Window ("GtkTest"); + w.DeleteEvent += OnQuit; + w.Add (b); + w.Resize (200, 100); + w.ShowAll (); + + Application.Run (); + } + + static void MyClickedHandler(object obj, EventArgs args) { + ((Button)obj).Label = "test"; + } + + static void OnQuit (object o, DeleteEventArgs e) { + Application.Quit (); + e.RetVal = true; + } +} _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
