[Mono-bugs] [Bug 430330] New: New "trace for humans" option

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Sep 26 16:01:31 EDT 2008


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


           Summary: New "trace for humans" option
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Enhancement
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: aaragoneses at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


mono --trace is very useful, but it would be much more useful if we had a
tweaked version of this feature that:

- stopped tracing when entering inside a Console.Write*() method.
- blocked the execution of the program until the output sent to Console.Write*
methods is indeed written.

The purpose would be to have this kind of output:

 . ENTER: System.Console:WriteLine (string)([STRING:0x7f1b70e5ff50:dir /
exists], )
dir / exists
 . LEAVE: System.Console:WriteLine (string)


Instead of this:

 . ENTER: System.Console:WriteLine (string)([STRING:0x7f1b70e5ff50:dir /
exists], )
 . . ENTER: System.IO.SynchronizedWriter:WriteLine
(string)(this:0x7f1b70e44f88[System.IO.SynchronizedWriter Test.exe],
[STRING:0x7f1b70e5ff50:dir / exists], )
 . . . ENTER: System.Threading.Monitor:Enter
(object)([System.IO.SynchronizedWriter:0x7f1b70e44f88], )
 . . . . ENTER: (wrapper managed-to-native)
System.Threading.Monitor:Monitor_try_enter
(object,int)([System.IO.SynchronizedWriter:0x7f1b70e44f88], -1, )
(...)
 . . . . LEAVE: System.IO.TextWriter:WriteLine ()
 . . . LEAVE: System.IO.TextWriter:WriteLine (string)
 . . . ENTER: System.Threading.Monitor:Exit
(object)([System.IO.SynchronizedWriter:0x7f1b70e44f88], )
 . . . . ENTER: (wrapper managed-to-native)
System.Threading.Monitor:Monitor_exit
(object)([System.IO.SynchronizedWriter:0x7f1b70e44f88], )
 . . . . LEAVE: (wrapper managed-to-native)
System.Threading.Monitor:Monitor_exit (object)
 . . . LEAVE: System.Threading.Monitor:Exit (object)
 . . LEAVE: System.IO.SynchronizedWriter:WriteLine (string)
 . LEAVE: System.Console:WriteLine (string)


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list