Bug 322528 (MONO79827) - mdb ignores breakpoints in event handlers
Summary: mdb ignores breakpoints in event handlers
Status: RESOLVED FIXED
Alias: MONO79827
Product: Mono: Debugger
Classification: Mono
Component: backend (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-04 19:47 UTC by Jhair Tocancipa Triana
Modified: 2007-10-05 12:38 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:14:56 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".

Comment 1 Martin Baulig 2007-10-05 12:38:03 UTC
.