Instructions how to use Sleak
authorAlex Kirhenshtein <alk@netxms.org>
Fri, 9 Dec 2011 08:52:28 +0000 (08:52 +0000)
committerAlex Kirhenshtein <alk@netxms.org>
Fri, 9 Dec 2011 08:52:28 +0000 (08:52 +0000)
.gitattributes
doc/internal/sleak howto.txt [new file with mode: 0644]
doc/internal/sleak_debug.options [new file with mode: 0644]

index 9af6630..2525f2c 100644 (file)
@@ -86,6 +86,7 @@ doc/internal/netxms_architecture.gxml -text
 doc/internal/netxms_architecture.png -text
 doc/internal/netxms_architecture.svg -text
 doc/internal/report_definition.docx -text
+doc/internal/sleak_debug.options -text
 doc/manuals/client_library.doc -text
 doc/manuals/netxms_install_guide.odt -text
 doc/manuals/netxms_solution_guide.doc -text
diff --git a/doc/internal/sleak howto.txt b/doc/internal/sleak howto.txt
new file mode 100644 (file)
index 0000000..20f3ae4
--- /dev/null
@@ -0,0 +1,15 @@
+Inside Eclipse:
+
+* Run Configuration → Tracing
+       On the left side select "org.eclipse.ui"
+       On the right side select: "debug", "trace/graphics"
+
+* Run Configuration → Arguments
+       Add to VM Arguments: -Dsleak=c:/trace/file/location
+       Location can be empty
+
+Standalone:
+       Change nxmc.ini, add after "-vmargs" line:
+               "-Dsleak=c:/trace/file/location"
+       Run:
+               nxmc.exe -debug ...\trunk\doc\internal\sleak_debug.options
diff --git a/doc/internal/sleak_debug.options b/doc/internal/sleak_debug.options
new file mode 100644 (file)
index 0000000..d43e25c
--- /dev/null
@@ -0,0 +1,2 @@
+org.eclipse.ui/debug=true\r
+org.eclipse.ui/trace/graphics=true\r