Bugzilla – Bug 322528
mdb ignores breakpoints in event handlers
Last modified: 2007-10-05 12:38:03 UTC
---- Reported by jhair.tocancipa@gmail.com 2006-11-04 12:47:19 MST ---- 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; } } ---- Additional Comments From martin@ximian.com 2007-05-09 10:39:52 MST ---- Works for me. Unknown operating system unknown. Setting to default OS "Other".
.