Back to Delve

Configuration

Documentation/cli/config.md

1.26.32.3 KB
Original Source

Configuration

The configuration file config.yml is found in $XDG_CONFIG_HOME/dlv if $XDG_CONFIG_HOME is set, if it isn't set it will be in $HOME/.config/dlv on Linux and $HOME/.dlv in other operating systems.

The following options are available:

OptionDescription
aliasesMap fo command aliases command: [ "alias1", "alias2" ].
debug-info-directoriesList of directories to use when searching for separate debug info files.
disassemble-flavorDisassembler syntax. Can be 'intel', 'gun' or 'go'.
max-array-valuesMaximum number of array values when printing variables.
max-string-lenMaximum string length used when printing variables.
max-variable-recurseMaximum number of nested struct members when printing variables.
positionControls how the current position in the program is displayed (source
promptControls Delve's command line prompt. Use help config prompt for documentation on the available escape codes.
prompt-colorPrompt color, as a terminal escape sequence.
show-location-exprIf true the 'whatis' command will print the DWARF location expression of its argument.
source-list-arrow-colorSource list arrow color, as a terminal escape sequence.
source-list-comment-colorSource list comment color, as a terminal escape sequence.
source-list-keyword-colorSource list keyword color, as a terminal escape sequence.
source-list-line-colorSource list line-number color, as a terminal escape sequence.
source-list-line-countNumber of lines to list above and below the cursor when printing source code.
source-list-number-colorSource list number color, as a terminal escape sequence.
source-list-string-colorSource list string color, as a terminal escape sequence.
source-list-tab-colorSource list tab color, as a terminal escape sequence.
stacktrace-basename-colorColor for the base name in paths in the stack trace, as a terminal escape sequence.
stacktrace-function-colorColor for function names in the stack trace, as a terminal escape sequence.
substitute-pathPath substitution rules, a list of { from: path, to: path } pairs.
tabChanges what is printed when a tab character is encountered in source code.
trace-show-timestampIf true timestamps are shown in the trace output.