summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2023-03-24 16:12:45 +0100
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2023-03-27 07:29:40 +0000
commit094b5294f636a2625320ef74ad70a50fde3ff4b7 (patch)
tree3f09deec378e107c489f0fe3fef33baf8d26e402 /doc
parent1b2f1ac0f93a04a49544ef05f4172110c3d87b31 (diff)
downloadqt-creator-094b5294f636a2625320ef74ad70a50fde3ff4b7.tar.gz
Doc: Edit docs for Debug mode Disassembler and Debugger Log views
Task-number: QTCREATORBUG-28778 Change-Id: I66ea94881dc1ce3fa8d8fbe3bdd4b59504330738 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'doc')
-rw-r--r--doc/qtcreator/images/qcreator-debugger-select-start-address.webpbin0 -> 2672 bytes
-rw-r--r--doc/qtcreator/images/qtcreator-debugger-disassembler-view.webpbin0 -> 12290 bytes
-rw-r--r--doc/qtcreator/images/qtcreator-debugger-log-view.webpbin0 -> 8288 bytes
-rw-r--r--doc/qtcreator/src/debugger/creator-only/creator-debugger-settings.qdoc2
-rw-r--r--doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc87
-rw-r--r--doc/qtcreator/src/howto/creator-only/qtcreator-faq.qdoc2
-rw-r--r--doc/qtcreator/src/qtcreator-toc.qdoc2
7 files changed, 67 insertions, 26 deletions
diff --git a/doc/qtcreator/images/qcreator-debugger-select-start-address.webp b/doc/qtcreator/images/qcreator-debugger-select-start-address.webp
new file mode 100644
index 0000000000..2e24b71085
--- /dev/null
+++ b/doc/qtcreator/images/qcreator-debugger-select-start-address.webp
Binary files differ
diff --git a/doc/qtcreator/images/qtcreator-debugger-disassembler-view.webp b/doc/qtcreator/images/qtcreator-debugger-disassembler-view.webp
new file mode 100644
index 0000000000..7fcf5a13f1
--- /dev/null
+++ b/doc/qtcreator/images/qtcreator-debugger-disassembler-view.webp
Binary files differ
diff --git a/doc/qtcreator/images/qtcreator-debugger-log-view.webp b/doc/qtcreator/images/qtcreator-debugger-log-view.webp
new file mode 100644
index 0000000000..ce3e265365
--- /dev/null
+++ b/doc/qtcreator/images/qtcreator-debugger-log-view.webp
Binary files differ
diff --git a/doc/qtcreator/src/debugger/creator-only/creator-debugger-settings.qdoc b/doc/qtcreator/src/debugger/creator-only/creator-debugger-settings.qdoc
index 334e3c86a6..ab0aff0f54 100644
--- a/doc/qtcreator/src/debugger/creator-only/creator-debugger-settings.qdoc
+++ b/doc/qtcreator/src/debugger/creator-only/creator-debugger-settings.qdoc
@@ -18,7 +18,7 @@
\l{Specifying Breakpoint Settings}{specify settings for breakpoints},
and map source paths to target paths.
- You can view debug output in the \uicontrol {Debugger Log} view.
+ You can view debug output in the \l {Debugger Log} view.
However, in some Linux distributions, such as Arch Linux, debug
output is sent to the system log. To override this behavior, select
the \uicontrol {Force logging to console} check box. This sets
diff --git a/doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc b/doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc
index 921c5f001d..cd05267996 100644
--- a/doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc
+++ b/doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc
@@ -642,7 +642,7 @@
native debugger.
\li \l{Troubleshooting Debugger}
- \l {Directly Interacting with Native Debuggers}
+ \l {Debugger Log}
\row
\li Disassembler
\li View disassembled code for the current function.
@@ -1065,20 +1065,45 @@
\previouspage creator-registers-view.html
\nextpage creator-disassembler-view.html
- \title Directly Interacting with Native Debuggers
+ \title Debugger Log
- In some cases, it is convenient to directly interact with the command line
- of the native debugger. In \QC, you can use the left pane of the
- \uicontrol {Debugger Log} view for that purpose. When you press
- \key {Ctrl+Enter}, the contents of the line under the text cursor are sent
- directly to the native debugger. Alternatively, you can use the line edit at
- the bottom of the view. Output is displayed in the right pane of the
- \uicontrol {Debugger Log} view.
+ You can view debug output in the \uicontrol {Debugger Log} view to
+ \l {Debugger Does Not Work}{troubleshoot the debugger}.
+
+ \image qtcreator-debugger-log-view.webp {Debugger Log view}
+
+ If debug output is sent to the system log, select \uicontrol Edit >
+ \uicontrol Preferences > \uicontrol Debugger > \uicontrol General >
+ \uicontrol {Force logging to console} check box.
+
+ Right-click the view to select the following actions:
+
+ \list
+ \li Copy, paste, cut, and delete log contents.
+ \li Undo and redo editing actions.
+ \li Select all log contents.
+ \li Clear log contents.
+ \li Save log contents as a file.
+ \li Log time stamps.
+ \li Reload debugging helpers after \l{Adding Custom Debugging Helpers}
+ {adding custom debugging helpers}.
+ \li Set \l{Debugger Preferences}{debugger preferences}.
+ \endlist
+
+ \section1 Directly Interacting with Native Debuggers
+
+ You can use the left pane of the \uicontrol {Debugger Log} view to directly
+ interact with the command line of the native debugger.
+
+ Press \key {Ctrl+Enter} to send the contents of the line under the
+ text cursor to the native debugger. Or, enter the command in the
+ \uicontrol Command field. The right side pane of the
+ \uicontrol {Debugger Log} view shows the command output.
\note Usually, you do not need this feature because \QC offers better ways to
handle the task. For example, instead of using the GDB
\c print command from the command line, you can evaluate an expression in
- the \uicontrol {Expressions} view.
+ the \l {Evaluating Expressions}{Expressions} view.
*/
/*!
@@ -1088,22 +1113,38 @@
\title Viewing Disassembled Code
- The \uicontrol Disassembler view displays disassembled code for the current
- function.
+ A \e disassembler translates machine language into assembly language for
+ human-readability.
- The \uicontrol Disassembler view is useful for low-level commands for checking
- single instructions, such as \uicontrol {Step Into} and \uicontrol {Step Over}.
- By default, the \uicontrol Disassembler view is hidden.
+ The \uicontrol Disassembler view displays disassembled code for the current
+ function. It is useful for low-level commands for checking single
+ instructions, such as \uicontrol {Step Into} and \uicontrol {Step Over}.
- To access the \uicontrol Disassembler view, check
- \uicontrol Debug > \uicontrol {Operate by Instruction} while the debugger is
- running. Alternatively, click the
- \inlineimage icons/debugger_singleinstructionmode.png
- (\uicontrol {Operate by Instruction}) tool button on the debugger toolbar.
+ \image qtcreator-debugger-disassembler-view.webp {Disassembler view}
By default, GDB shows AT&T style disassembly. To switch to the Intel style,
select \uicontrol Edit > \uicontrol Preferences > \uicontrol Debugger >
\uicontrol GDB > \uicontrol {Use Intel style disassembly}.
+
+ To open the \uicontrol Disassembler view:
+
+ \list
+ \li Select \uicontrol Debug > \uicontrol {Operate by Instruction} while
+ the debugger is running.
+ \li Select the \inlineimage icons/debugger_singleinstructionmode.png
+ (\uicontrol {Operate by Instruction}) tool button on the debugger
+ toolbar.
+ \li In the \l {Viewing and Editing Register State}{Registers} view,
+ select a value, and then select \uicontrol {Open Disassembler at <value>}
+ in the context menu.
+ \endlist
+
+ \section1 Starting Disassembler
+
+ To start a disassembler from the \uicontrol Registers view, select
+ \uicontrol {Open Disassembler} and set the disassembler address:
+
+ \image qcreator-debugger-select-start-address.webp {Select Start Address dialog}
*/
/*!
@@ -1250,7 +1291,7 @@
The custom debugging helpers will be automatically picked up from
\c personaltypes.py when you start a debugging session in \QC or select
\uicontrol {Reload Debugging Helpers} from the context menu of the
- \uicontrol {Debugger Log} view.
+ \l {Debugger Log} view.
\section2 Debugging Helper Overview
@@ -1796,7 +1837,7 @@
\li In the \uicontrol Debug mode, select \uicontrol View >
\uicontrol Views > \uicontrol {Debugger Log} to open the
- \uicontrol {Debugger Log} view. Browse the contents of the pane on
+ \l {Debugger Log} view. Browse the contents of the pane on
the right hand side to find out what went wrong. Always attach the
contents of the pane to debugger-related questions to the \QC
mailing list (qt-creator@qt-project.org) or paste them to a
@@ -1854,7 +1895,7 @@
\section2 Disabling Incremental Linking
- Incremental linking can affect debugging. If the debugger log has
+ Incremental linking can affect debugging. If the \l {Debugger Log} view shows
the \e {Unable to verify checksum of module} message, disable incremental
linking.
diff --git a/doc/qtcreator/src/howto/creator-only/qtcreator-faq.qdoc b/doc/qtcreator/src/howto/creator-only/qtcreator-faq.qdoc
index 6a883fe37a..6a1d6a1227 100644
--- a/doc/qtcreator/src/howto/creator-only/qtcreator-faq.qdoc
+++ b/doc/qtcreator/src/howto/creator-only/qtcreator-faq.qdoc
@@ -175,7 +175,7 @@
\b {How do I generate a core file in \QC?}
To trigger the GDB command that generates a core file while debugging,
- select \uicontrol View > \uicontrol Views > \uicontrol {Debugger Log}.
+ select \uicontrol View > \uicontrol Views > \l {Debugger Log}.
In the \uicontrol Command field, type \c gcore and press \key Enter. The
core file is created in the current working directory. You can specify
another location for the file, including a relative or absolute path, as an
diff --git a/doc/qtcreator/src/qtcreator-toc.qdoc b/doc/qtcreator/src/qtcreator-toc.qdoc
index d514c329c3..e2299cd05c 100644
--- a/doc/qtcreator/src/qtcreator-toc.qdoc
+++ b/doc/qtcreator/src/qtcreator-toc.qdoc
@@ -175,7 +175,7 @@
\li \l{Local Variables and Function Parameters}
\li \l{Evaluating Expressions}
\li \l{Viewing and Editing Register State}
- \li \l{Directly Interacting with Native Debuggers}
+ \li \l{Debugger Log}
\li \l{Viewing Disassembled Code}
\li
\endlist