Last modified by Pascal Robert on 2010/09/19 10:30

From version 2.1
edited by smmccraw
on 2007/07/08 09:46
Change comment: There is no comment for this version
To version 3.1
edited by Quinton Dolan
on 2007/07/12 20:35
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.smmccraw
1 +XWiki.qdolan
Content
... ... @@ -13,30 +13,30 @@
13 13  
14 14  For example, if you want to start the logging of WebObjects and EO debug information you can do:
15 15  
16 -{{panel}}
16 +{{code}}
17 17  
18 - NSLog.allowDebuggingForGroups(NSLog.DebugGroupWebObjects|NSLog.DebugGroupEnterpriseObjects);
18 +NSLog.allowDebuggingForGroups(NSLog.DebugGroupWebObjects|NSLog.DebugGroupEnterpriseObjects);
19 19  
20 -{{/panel}}
20 +{{/code}}
21 21  
22 22  Or:
23 23  
24 -{{panel}}
24 +{{code}}
25 25  
26 - NSLog.allowDebuggingForGroups(6); // Flags 2 and 1, ie. 6 = 1L<<2 | 1L<<1
26 +NSLog.allowDebuggingForGroups(6); // Flags 2 and 1, ie. 6 = 1L<<2 | 1L<<1
27 27  
28 -{{/panel}}
28 +{{/code}}
29 29  
30 30  You can specify debug groups in a command-line argument, either as a single numerical value (as above), as a list of flags or as a range of flags. For example all the following are equivalent:
31 31  
32 -{{panel}}
32 +{{noformat}}
33 33  
34 - ./MyApp -DNSDebugGroups=6
35 - ./MyApp -DNSDebugGroups="(2, 1)"
36 - ./MyApp -DNSDebugGroups="(NSLog.DebugGroupWebObjects, NSLog.DebugGroupEnterpriseObjects)"
37 - ./MyApp -DNSDebugGroups=1:2
34 +./MyApp -DNSDebugGroups=6
35 +./MyApp -DNSDebugGroups="(2, 1)"
36 +./MyApp -DNSDebugGroups="(NSLog.DebugGroupWebObjects, NSLog.DebugGroupEnterpriseObjects)"
37 +./MyApp -DNSDebugGroups=1:2
38 38  
39 -{{/panel}}
39 +{{/noformat}}
40 40  
41 41  These are the available debug groups (WebObjects 5.2.2):
42 42