From e4f805da73437c3a7db0362d3592056bd6df47a1 Mon Sep 17 00:00:00 2001
From: Leena Miettinen <riitta-leena.miettinen@nokia.com>
Date: Fri, 24 Sep 2010 09:52:23 +0200
Subject: [PATCH] Doc - using debugger from command line

Task-number: QTCREATORBUG-2432

Reviewed-by: hjk
---
 doc/qtcreator.qdoc | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/doc/qtcreator.qdoc b/doc/qtcreator.qdoc
index c17c0347e41..5ccf1d594e9 100644
--- a/doc/qtcreator.qdoc
+++ b/doc/qtcreator.qdoc
@@ -4989,6 +4989,28 @@
     \gui {Interrupt}. The program is automatically interrupted as soon as a
     breakpoint is hit.
 
+    \section2 Starting the Debugger from the Command Line
+
+    You can use the Qt Creator debugger interface from the command line. To
+    attach it to a running process, specify the process ID as a parameter for
+    the \c {-debug} option. To examine a core file, specify the file name.
+    Qt Creator executes all the necessary steps, such as searching for
+    the binary that belongs to a core file.
+
+    For example:
+
+    \list
+
+        \o \c {C:\qtcreator-2.1\bin>qtcreator -debug 2000}
+
+        \o \c {C:\qtcreator-2.1\bin>qtcreator -debug core.2000}
+
+    \endlist
+
+    For more information, see \l{Using Command Line Options}.
+
+    \section1 Using the Debugger
+
     Once the program stops, Qt Creator:
 
     \list
-- 
GitLab