https://bugzilla.novell.com/show_bug.cgi?id=464122


           Summary: Impossible to set a breakpoint to throw
           Product: Mono: Debugger
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: gui
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: ---


I have not found a way how to set a breakpoint at throw in following code
(extracted from MethodBuilder.cs)

                internal void fixup ()
                {
                        if (((attrs & (MethodAttributes.Abstract |
MethodAttributes.PinvokeImpl)) == 0) && ((iattrs &
(MethodImplAttributes.Runtime | MethodImplAttributes.InternalCall)) == 0)) {
#if NET_2_0
                                // do not allow zero length method body on
MS.NET 2.0 (and higher)
                                if (((ilgen == null) ||
(ILGenerator.Mono_GetCurrentOffset (ilgen) == 0)) && (code == null ||
code.Length == 0))
#else
                                if (((ilgen == null) ||
(ILGenerator.Mono_GetCurrentOffset (ilgen) == 0)) && (code == null))
#endif
                                        throw new InvalidOperationException (
                                                                            
String.Format ("Method '{0}.{1}' does not have a method body.",
                                                                               
            DeclaringType.FullName, Name));
                        }
                        if (ilgen != null)
                                ilgen.label_fixup ();
                }


-- 
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  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to