diff options
author | Miguel de Icaza <miguel@gnome.org> | 2003-10-16 23:14:31 +0400 |
---|---|---|
committer | Miguel de Icaza <miguel@gnome.org> | 2003-10-16 23:14:31 +0400 |
commit | 5e8707e3e7831e7a7b70dfbacfe6b495be2aca2d (patch) | |
tree | f8066381dea8b8275a35af17d210578247f87195 /man | |
parent | b3ab28d2b8261e834dcc7ccc4960c1c078cd9efd (diff) |
Update
svn path=/trunk/mono/; revision=19107
Diffstat (limited to 'man')
-rw-r--r-- | man/mono.1 | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/man/mono.1 b/man/mono.1 index 8f172273d23..4a417ec10f9 100644 --- a/man/mono.1 +++ b/man/mono.1 @@ -168,9 +168,41 @@ breakpoint on the application's main method. Inserts a breakpoint on exceptions. This allows you to debug your application with a native debugger when an exception is thrown. .TP -.I "--trace" -Shows method names as they are invoked. - +.I "--trace[=expression]" +Shows method names as they are invoked. By default all methods are +traced. +.TP +The trace can be customized to include or exclude methods, classes or +assemblies. A trace expression is a comma separated list of targets, +each target can be prefixed with a minus sign to turn off a particular +target. The words `program' and `all' have special meaning. +`program' refers to the main program being executed, and `all' means +all the method calls. +.TP +Assemblies are specified by their name, for example, to trace all +calls in the System assembly, use: +.nf + mono --trace=System app.exe +.fi +Classes are specified with the T: prefix. For example, to trace all +calls to the System.String class, use: +.nf + mono --trace=T:System.String app.exe +.fi +And individual methods are referenced with the M: prefix, and the +standar method notation: +.nf + mono --trace=M:System.Console.WriteLine app.exe +.fi +As previously noted, various rules can be specified at once: +.nf + mono --trace=T:System.String,T:System.Random app.exe +.fi +You can exclude pieces, the next example traces calls to +System.String except for the System.String:Concat method. +.nf + mono --trace=T:System.String,-M:System.String:Concat +.fi .SH ENVIRONMENT VARIABLES .TP |