Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

debug: make local variables load config configurable#3676

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
gremat wants to merge1 commit intofatih:master
base:master
Choose a base branch
Loading
fromgremat:feat/debug-make-local-variables-load-config-configurable
Open
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
debug: make local variables load config configurable
  • Loading branch information
@gremat
gremat committedAug 2, 2024
commitb8f7075b45fbcf9cfa184c0b0f82328c2c9c60b3
4 changes: 4 additions & 0 deletionsautoload/go/config.vim
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -217,6 +217,10 @@ function! go#config#LspLog() abort
return g:go_lsp_log
endfunction

function! go#config#DebugLocalVariablesLoadConfig() abort
return get(g:, 'go_debug_local_variables_load_config', {'MaxStringLen': 20, 'MaxArrayValues': 20, 'MaxVariableRecurse': 10})
endfunction

function! go#config#SetDebugDiag(value) abort
let g:go_debug_diag = a:value
endfunction
Expand Down
2 changes: 1 addition & 1 deletionautoload/go/debug.vim
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1242,7 +1242,7 @@ function! s:update_variables() abort
" MaxStructFields is the maximum number of fields read from a struct, -1 will read all fields.
let l:cfg = {
\ 'scope': {'GoroutineID': s:goroutineID()},
\ 'cfg':{'MaxStringLen': 20, 'MaxArrayValues': 20, 'MaxVariableRecurse': 10}
\ 'cfg':go#config#DebugLocalVariablesLoadConfig()
\ }

try
Expand Down
18 changes: 16 additions & 2 deletionsdoc/vim-go.txt
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2481,22 +2481,36 @@ will suppress logging entirely. Default: `'debugger,rpc'`:
let g:go_debug_log_output = 'debugger,rpc'
<

*'g:go_highlight_debug'*
*'g:go_highlight_debug'*

Highlight the current line and breakpoints in the debugger.

>
let g:go_highlight_debug = 1
<

*'go:go_debug_breakpoint_sign_text'*
*'g:go_debug_breakpoint_sign_text'*

Set the sign text used for breakpoints in the debugger. By default it's '>'.

>
let g:go_debug_breakpoint_sign_text = '>'
<

*'g:go_debug_local_variables_load_config'*

Set load configuration that is used to retrieve and display local variables in
the variable window. For details about the values, refer to
https://pkg.go.dev/github.com/go-delve/delve/service/api#LoadConfig .

>
let g:go_debug_local_variables_load_config = {
\ 'MaxStringLen': 20,
\ 'MaxArrayValues': 20,
\ 'MaxVariableRecurse': 10,
\ }
<

==============================================================================
FAQ TROUBLESHOOTING *go-troubleshooting*

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp