-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings doc #252
Open
wronglink
wants to merge
6
commits into
inducer:main
Choose a base branch
from
wronglink:settings_doc
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Settings doc #252
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5cccc52
Make configuration section documentation
wronglink b1eaaf6
Add note about config location
wronglink 3fc2f96
Corrected the config file path desctiption
wronglink 194d41f
Remove description for inner settings
wronglink 2933857
Added note about config dialog
wronglink dc6428c
Updated config docs
wronglink File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
Configuration | ||
------------- | ||
|
||
At debugging session ``Ctrl-P`` shortcut opens configuration dialog. | ||
Additionally all PuDB information is stored in a location specified by the | ||
`XDG Base Directory Specification | ||
<http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html>`_. | ||
Usually, it is ``~/.config/pudb``. The PuDB configuration is stored at | ||
``pudb.cfg`` file inside that directory. Therefore the whole path is usually | ||
``~/.config/pudb/pudb.cfg``. | ||
|
||
Following options are available to customise PuDB behaviour: | ||
|
||
Line Numbers | ||
************ | ||
|
||
``line_numbers`` | ||
|
||
Show or hide the line numbers in the source code pane. | ||
|
||
Prompt on quit | ||
************** | ||
|
||
``prompt_on_quit`` | ||
|
||
Prompt or not before quitting. | ||
|
||
Shell | ||
***** | ||
|
||
``shell`` | ||
|
||
This is the shell that will be used when you hit ``!``. Available choices: | ||
|
||
* internal | ||
* classic | ||
* ipython | ||
* bpython | ||
* ptpython | ||
|
||
``custom_shell`` | ||
|
||
Your own custom shell. See example-shell.py in the pudb distribution. Enter | ||
the full path to a file like it in the box above. ``~`` will be expanded to your | ||
home directory. The file should contain a function called | ||
``pudb_shell(_globals, _locals)`` at the module level. | ||
|
||
Theme | ||
***** | ||
|
||
``theme`` | ||
|
||
PuDB UI theme. Available choices: | ||
|
||
* classic | ||
* vim | ||
* dark vim | ||
* midnight | ||
* solarized | ||
* agr-256 | ||
* monokai | ||
* monokai-256 | ||
|
||
``custom_theme`` | ||
|
||
Your own custom theme, see example-theme.py in the pudb distribution. Enter | ||
the full path to a file like it in the box above. ``~`` will be expanded to | ||
your home directory. | ||
|
||
Stack Order | ||
******************* | ||
|
||
``current_stack_frame`` | ||
|
||
Show the current stack frame at the top or at the bottom. | ||
|
||
Variable Stringifier | ||
******************** | ||
|
||
``stringifier`` | ||
|
||
This is the default function that will be called on variables in the variables | ||
list. Note that you can change this on a per-variable basis by selecting a | ||
variable and hitting Enter or by typing ``t``/``s``/``r``. Note that str and | ||
repr will be slower than type and have the potential to crash PuDB. | ||
|
||
``custom_stringifier`` | ||
|
||
To use a custom stringifier, see example-stringifier.py in the pudb | ||
distribution. Enter the full path to a file like it in the box above. ``~`` | ||
will be expanded to your home directory. The file should contain a function | ||
called ``pudb_stringifier()`` at the module level, which should take a single | ||
argument and return the desired string form of the object passed to it. | ||
|
||
Wrap variables | ||
************** | ||
|
||
``wrap_variables`` | ||
|
||
Note that you can change this option on a per-variable basis by selecting the | ||
variable and pressing ``w``. | ||
|
||
Display drive | ||
************* | ||
|
||
``display`` | ||
|
||
What driver is used to talk to your terminal. ``raw`` has the most features | ||
(colors and highlighting), but is only correct for XTerm and terminals like it. | ||
``curses`` has fewer features, but it will work with just about any terminal. | ||
``auto`` will attempt to pick between the two based on availability and | ||
the ``$TERM`` environment variable. | ||
|
||
Changing this setting requires a restart of PuDB. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ Table of Contents | |
starting | ||
usage | ||
shells | ||
configuration | ||
misc | ||
|
||
|
||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should state at the top that you can change the settings within PuDB by pressing
Ctrl-p
. That's the most important thing here (and it isn't obvious to everyone).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you push? I don't see it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. Something went wrong. Pushed it.