Skip to content

Commit

Permalink
[lldb] Add some formatting to variable.rst (NFC)
Browse files Browse the repository at this point in the history
  • Loading branch information
kastiglione committed Jan 31, 2025
1 parent 5c3db5a commit 1b0becf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lldb/docs/use/variable.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1226,13 +1226,13 @@ By default, several categories are created in LLDB:
- CoreServices: CS classes
- VectorTypes: compact display for several vector types

If you want to use a custom category for your formatters, all the type ... add
provide a --category (-w) option, that names the category to add the formatter
If you want to use a custom category for your formatters, all the ``type ... add``
provide a ``--category`` (``-w``) option, that names the category to add the formatter
to. To delete the formatter, you then have to specify the correct category.

Categories can be in one of two states: enabled and disabled. A category is
initially disabled, and can be enabled using the type category enable command.
To disable an enabled category, the command to use is type category disable.
initially disabled, and can be enabled using the ``type category enable`` command.
To disable an enabled category, the command to use is ``type category disable``.

The order in which categories are enabled or disabled is significant, in that
LLDB uses that order when looking for formatters. Therefore, when you enable a
Expand Down

0 comments on commit 1b0becf

Please sign in to comment.