Skip to content

Commit 6cb63b9

Browse files
authored
Merge pull request #761 from VimspectorUpdateBot/auto/update-vim-docs
2 parents a2d2104 + c5f6790 commit 6cb63b9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

doc/vimspector.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,12 +1152,14 @@ The following mappings apply by default in the breakpoints window:
11521152
- 't', '<F9>' - toggle, i.e. enable/disable breakpoint
11531153
- 'T' - toggle, i.e. enable/disable ALL breakpoints
11541154
- 'dd', '<Del>' - delete the current breakpoint
1155+
- 'cc', 'C' - edit the current breakpoint options
11551156
- 'i', 'a', 'o' - add a new line breakpoint
11561157
- 'I', 'A', 'O' - add a new function breakpoint
11571158
- '<Enter>' or double-click - jump to the line breakpoint
11581159

11591160
A WinBar is provided (where supported) too. This adds functions like
1160-
saving/restoring sessions and clearing all breakpoints too.
1161+
saving/restoring sessions, clearing all breakpoints, and resetting the
1162+
exception breakpoints options.
11611163

11621164
-------------------------------------------------------------------------------
11631165
*vimspector-line-breakpoints*
@@ -1744,7 +1746,8 @@ So, in summary you have the following facilities:
17441746
(if you're brave) using 'VimspectorDestroySession <name>'. You can't
17451747
destroy a running/active session.
17461748

1747-
- 'vimspector#GetSessionName()' useful for putting in a statusline.
1749+
- 'vimspector#GetSessionName()' useful for putting in a statusline. There's
1750+
also 'vimspector#GetSessionID()' for techies.
17481751

17491752
Here's an example of how you can display the current session name in the
17501753
'statusline' (see ':help statusline', or the documentation for your fancy
@@ -1757,11 +1760,15 @@ status line plugin).
17571760
endif
17581761
17591762
" Abort if vimspector not loaded
1760-
if !exists( '*vimspector#GetSessionName' )
1763+
if !exists( '*vimspector#GetSessionName' ) ||
1764+
\ !exists( '*vimspector#GetSessionID' )
17611765
return ''
17621766
endif
17631767
17641768
return vimspector#GetSessionName()
1769+
\ .. ' ('
1770+
\ .. vimspector#GetSessionID()
1771+
\ .. ')'
17651772
endfunction
17661773
17671774
" ... existing statusline stuff

0 commit comments

Comments
 (0)