aboutsummaryrefslogtreecommitdiffstats
path: root/doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2023-10-17 16:19:40 +0200
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2023-10-18 14:43:29 +0000
commit81898c675cb554490e38478b4e33e32c0a63038e (patch)
treec3416f5756b510c2671fa5851eec2c303cd95ea0 /doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc
parente51b378ac989bede498a5b445d7ca84cb9b02ea2 (diff)
Doc: Add a \preferences macro and use it everywhere
The macro can be used to show the path to Preferences on Windows, Linux, and macOS. The current value expands to: "Edit (or Qt Creator on macOS) > Preferences". We can now change this in one place if we so wish. Task-number: QTCREATORBUG-29734 Change-Id: I9afe4f7093dbcc8e62a2b18e1ae3f6f243bbb72b Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc')
-rw-r--r--doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc94
1 files changed, 42 insertions, 52 deletions
diff --git a/doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc b/doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc
index 1c1f64d419..fe61cd19ea 100644
--- a/doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc
+++ b/doc/qtcreator/src/debugger/creator-only/creator-debugger.qdoc
@@ -133,19 +133,18 @@
\QC checks whether the compiled application is up-to-date, and rebuilds and
deploys it if you set the \uicontrol {Build before deploying} field to
- build the whole project or the application to run and select he
- \uicontrol {Always deploy before running} check box in
- \uicontrol Edit > \uicontrol Preferences > \uicontrol {Build & Run} >
- \uicontrol General. To debug the application without deploying
- it, select \uicontrol Debug > \uicontrol {Start Debugging} >
- \uicontrol {Start Debugging Without Deployment}.
+ build the whole project or the application to run and select the
+ \uicontrol {Always deploy before running} check box in \preferences >
+ \uicontrol {Build & Run} > \uicontrol General. To debug the application
+ without deploying it, select \uicontrol Debug > \uicontrol {Start Debugging}
+ > \uicontrol {Start Debugging Without Deployment}.
The debugger then takes over and starts the application with suitable
parameters.
When using GDB or CDB as debug backend, you can specify additional commands
to execute before and after the backend and debugged application are started or
- attached in \uicontrol Edit > \uicontrol Preferences > \uicontrol Debugger >
+ attached in \preferences > \uicontrol Debugger >
\uicontrol GDB and \uicontrol CDB. For more information, see
\l{Debugger Preferences}.
@@ -210,7 +209,7 @@
If a console application does not start up properly in the configured
console and the subsequent attach fails, you can diagnose the issue by
- using CDB's native console. Select \uicontrol Edit > \uicontrol Preferences >
+ using CDB's native console. Select \preferences >
\uicontrol Debugger > \uicontrol CDB > \uicontrol {Use CDB console} to
override the console set in the Windows system environment variables.
Note that the native console does not prompt on application exit.
@@ -364,7 +363,7 @@
The \QC installation program asks you whether you want to register \QC as a
post-mortem debugger. To change the setting, select
- \uicontrol Edit > \uicontrol Preferences > \uicontrol Debugger >
+ \preferences > \uicontrol Debugger >
\uicontrol General > \uicontrol {Use \QC for post-mortem debugging}.
You can launch the debugger in the post-mortem mode if an application
@@ -487,7 +486,7 @@
By default, a non-responsive GDB process is terminated after 20 seconds.
To increase the timeout in the \uicontrol {GDB timeout} field, select
- \uicontrol Edit > \uicontrol Preferences > \uicontrol Debugger >
+ \preferences > \uicontrol Debugger >
\uicontrol GDB. For more information about settings that you can specify
to manage the GDB process, see \l{Specifying GDB Settings}.
@@ -560,9 +559,9 @@
\endlist
- To specify settings for managing the CDB process, select \uicontrol Edit >
- \uicontrol Preferences > \uicontrol Debugger > \uicontrol CDB. For more
- information, see \l{Specifying CDB Settings}.
+ To specify settings for managing the CDB process, select \preferences >
+ \uicontrol Debugger > \uicontrol CDB. For more information, see
+ \l{Specifying CDB Settings}.
*/
@@ -706,8 +705,7 @@
\section1 Customizing Debug Views
To change the appearance and behavior of the debug views, set preferences
- in \uicontrol Edit > \uicontrol Preferences > \uicontrol Debugger >
- \uicontrol General.
+ in \preferences > \uicontrol Debugger > \uicontrol General.
\image qtcreator-debugger-general-options.png {General tab in Debugger preferences}
@@ -800,8 +798,8 @@
select \uicontrol {Close Editor Tooltips} in the context menu in the
\uicontrol Locals or \uicontrol Expressions view.
- To disable tooltips for performance reasons, select \uicontrol Edit >
- \uicontrol Preferences > \uicontrol Debugger > \uicontrol General >
+ To disable tooltips for performance reasons, select \preferences >
+ \uicontrol Debugger > \uicontrol General >
\uicontrol {Use tooltips in main editor when debugging}.
\section1 Examining Complex Values in Debug Views
@@ -848,9 +846,8 @@
classes in a useful way.
To change the number of array elements that are
- requested when expanding entries, select \uicontrol Edit >
- \uicontrol Preferences > \uicontrol {Debugger} >
- \uicontrol {Locals & Expressions} > \uicontrol {Default array size}.
+ requested when expanding entries, select \preferences > \uicontrol {Debugger}
+ > \uicontrol {Locals & Expressions} > \uicontrol {Default array size}.
\section1 Stepping Through Code
@@ -948,9 +945,8 @@
value display format. The available options depend on the type of the
current items, and are provided by the debugging helpers.
- To force a plain C-like display of structures, select
- \uicontrol Edit > \uicontrol Preferences > \uicontrol Debugger >
- \uicontrol {Locals & Expressions}, and then deselect the
+ To force a plain C-like display of structures, select \preferences >
+ \uicontrol Debugger > \uicontrol {Locals & Expressions}, and then deselect the
\uicontrol {Use Debugging Helpers} check box. This still uses the
Python scripts, but generates more basic output. To force the plain display
for a single object or for all objects of a given type, select
@@ -990,9 +986,8 @@
If an instance of a class is derived from QObject, you can find all other
objects connected to this object's slots with Qt's signals and slots
- mechanism. Select \uicontrol Edit > \uicontrol Preferences
- > \uicontrol {Debugger} > \uicontrol {Locals & Expressions} >
- \uicontrol {Use Debugging Helpers}.
+ mechanism. Select \preferences > \uicontrol {Debugger} >
+ \uicontrol {Locals & Expressions} > \uicontrol {Use Debugging Helpers}.
\image qtcreator-debugging-helper-options.webp {Locals & Expressions preferences}
@@ -1006,9 +1001,8 @@
switch off the debugging helpers to make low-level structures visible.
To switch off the debugging helpers, deselect
- \uicontrol {Use Debugging Helpers} in \uicontrol Edit >
- \uicontrol Preferences > \uicontrol Debugger >
- \uicontrol {Locals & Expressions}.
+ \uicontrol {Use Debugging Helpers} in \preferences >
+ \uicontrol Debugger > \uicontrol {Locals & Expressions}.
\omit
\section2 Creating Snapshots
@@ -1112,8 +1106,8 @@
When using CDB as debug backend, you can specify that the debugger should
break when application modules are loaded or unloaded. To enable breaking
- for the specified modules, select \uicontrol Edit > \uicontrol Preferences >
- \uicontrol Debugger > \uicontrol CDB.
+ for the specified modules, select \preferences > \uicontrol Debugger >
+ \uicontrol CDB.
\image qtcreator-cdb-options.png {CDB tab in Debugger preferences}
@@ -1150,8 +1144,7 @@
To enable the debugger to step into the code and display the source code
when using a copy of the source tree at a location different from the one
at which the libraries were built, you can map source paths to target
- paths in \uicontrol Edit > \uicontrol Preferences > \uicontrol Debugger >
- \uicontrol General:
+ paths in \preferences > \uicontrol Debugger > \uicontrol General:
\image qtcreator-debugger-general-options.png {General tab in Debugger preferences}
@@ -1264,8 +1257,8 @@
\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 >
+ If debug output is sent to the system log, select \preferences >
+ \uicontrol Debugger > \uicontrol General >
\uicontrol {Force logging to console} check box.
Right-click the view to select the following actions:
@@ -1315,7 +1308,7 @@
\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 >
+ select \preferences > \uicontrol Debugger >
\uicontrol GDB > \uicontrol {Use Intel style disassembly}.
To open the \uicontrol Disassembler view:
@@ -1371,7 +1364,7 @@
least one of the three supported backends is available.
To use the default GDB pretty printers installed in your system or linked
- to the libraries your application uses, select \uicontrol Preferences >
+ to the libraries your application uses, select \preferences >
\uicontrol Debugger > \uicontrol GDB > \uicontrol {Load system GDB pretty
printers}. For more information, see \l{Specifying GDB Settings}.
@@ -1381,9 +1374,9 @@
You can have commands executed after built-in debugging helpers have
been loaded and fully initialized. To load additional debugging helpers or
- modify existing ones, select \uicontrol Edit > \uicontrol Preferences >
- \uicontrol Debugger > \uicontrol {Locals & Expressions}, and enter the
- commands in the \uicontrol {Debugging Helper Customization} field.
+ modify existing ones, select \preferences > \uicontrol Debugger >
+ \uicontrol {Locals & Expressions}, and enter the commands in the
+ \uicontrol {Debugging Helper Customization} field.
\image qtcreator-debugging-helper-options.webp {Locals & Expressions preferences}
@@ -1403,9 +1396,8 @@
\endcode
To display a message box as soon as your application receives a signal
- during debugging, select \uicontrol Edit > \uicontrol Preferences >
- \uicontrol Debugger > \uicontrol GDB > \uicontrol {Show a message box
- when receiving a signal}.
+ during debugging, select \preferences > \uicontrol Debugger > \uicontrol GDB >
+ \uicontrol {Show a message box when receiving a signal}.
\section2 Adding Custom Debugging Helpers
@@ -1416,8 +1408,8 @@
To add debugging helpers for custom types, add debugging helper
implementations to the startup file of the native debuggers (for example,
\c{~/.gdbinit} or \c{~/.lldbinit}) or specify them directly in the
- \uicontrol {Additional Startup Commands} in \uicontrol Edit >
- \uicontrol Preferences > \uicontrol Debugger > \uicontrol GDB.
+ \uicontrol {Additional Startup Commands} in \preferences >
+ \uicontrol Debugger > \uicontrol GDB.
To get started with implementing debugging helpers for your own data types,
you can put their implementation into the file
@@ -1450,9 +1442,8 @@
update your \QC installation (when updating your Qt installation,
for example), copy it to a safe location outside the \QC
installation in your file system and specify the location in
- \uicontrol Edit > \uicontrol Preferences > \uicontrol Debugger >
- \uicontrol {Locals & Expressions} >
- \uicontrol {Extra Debugging Helper}.
+ \preferences > \uicontrol Debugger > \uicontrol {Locals & Expressions}
+ > \uicontrol {Extra Debugging Helper}.
\endlist
The custom debugging helpers will be automatically picked up from
@@ -1593,7 +1584,7 @@
common situations.
When using CDB as debugger backend, you can enable the Python dumper by
- selecting \uicontrol Edit > \uicontrol Preferences > \uicontrol Debugger >
+ selecting \preferences > \uicontrol Debugger >
\uicontrol CDB > \uicontrol {Use Python dumper}.
\image qtcreator-cdb-options.png {CDB preferences}
@@ -2042,9 +2033,8 @@
When using GDB as backend, you can automatically save a copy of
its symbol index in a cache on disk and retrieve it from there
- when loading the same binary in the future. Select \uicontrol Edit
- > \uicontrol Preferences > \uicontrol Debugger > \uicontrol GDB >
- \uicontrol {Use automatic symbol cache}.
+ when loading the same binary in the future. Select \preferences >
+ \uicontrol Debugger > \uicontrol GDB > \uicontrol {Use automatic symbol cache}.
\image qtcreator-gdb-options.png {GDB preferences}