annotate runtime/doc/debugger.txt @ 32049:717a1a8dc751 v9.0.1356

patch 9.0.1356: cannot cancel "gr" with Esc Commit: https://github.com/vim/vim/commit/4f026ea9f1ad9db262f0dba522768c84e5ae37b4 Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Feb 26 14:47:24 2023 +0000 patch 9.0.1356: cannot cancel "gr" with Esc Problem: Cannot cancel "gr" with Esc. Solution: Make "gr<Esc>" do nothing. (closes https://github.com/vim/vim/issues/12064)
author Bram Moolenaar <Bram@vim.org>
date Sun, 26 Feb 2023 16:00:05 +0100
parents f8116058ca76
children 4635e43f2c6f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
29314
f8116058ca76 release version 9.0
Bram Moolenaar <Bram@vim.org>
parents: 19163
diff changeset
1 *debugger.txt* For Vim version 9.0. Last change: 2019 Dec 21
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Gordon Prieur
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 Debugger Support Features *debugger-support*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
17372
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16808
diff changeset
9 These features are for integration with a debugger or an Integrated
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16808
diff changeset
10 Programming Environment (IPE) or Integrated Development Environment (IDE).
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16808
diff changeset
11 For the debugger running in a Vim terminal window see |terminal-debugger|.
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16808
diff changeset
12
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 1. Debugger Features |debugger-features|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 2. Vim Compile Options |debugger-compilation|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 1. Debugger Features *debugger-features*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
17372
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16808
diff changeset
19 The following features are available:
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 Alternate Command Input |alt-input|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 Debug Signs |debug-signs|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 Debug Source Highlight |debug-highlight|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 Message Footer |gui-footer|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 Balloon Evaluation |balloon-eval|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 These features were added specifically for use in the Motif version of gvim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 However, the |alt-input| and |debug-highlight| were written to be usable in
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
29 both vim and gvim. Some of the other features could be used in the non-GUI
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
30 vim with slight modifications. However, I did not do this nor did I test the
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 reliability of building for vim or non Motif GUI versions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 1.1 Alternate Command Input *alt-input*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 For Vim to work with a debugger there must be at least an input connection
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
37 with a debugger or external tool. In many cases there will also be an output
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 connection but this isn't absolutely necessary.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 The purpose of the input connection is to let the external debugger send
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
41 commands to Vim. The commands sent by the debugger should give the debugger
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 enough control to display the current debug environment and state.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 The current implementation is based on the X Toolkit dispatch loop and the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 XtAddInput() function call.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 1.2 Debug Signs *debug-signs*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 Many debuggers mark specific lines by placing a small sign or color highlight
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
51 on the line. The |:sign| command lets the debugger set this graphic mark. Some
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 examples where this feature would be used would be a debugger showing an arrow
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
53 representing the Program Counter (PC) of the program being debugged. Another
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
54 example would be a small stop sign for a line with a breakpoint. These visible
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 highlights let the user keep track of certain parts of the state of the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 debugger.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
58 This feature can be used with more than debuggers, too. An IPE can use a sign
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
59 to highlight build errors, searched text, or other things. The sign feature
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 can also work together with the |debug-highlight| to ensure the mark is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 highly visible.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 Debug signs are defined and placed using the |:sign| command.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 1.3 Debug Source Highlight *debug-highlight*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
68 This feature allows a line to have a predominant highlight. The highlight is
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
69 intended to make a specific line stand out. The highlight could be made to
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 work for both vim and gvim, whereas the debug sign is, in most cases, limited
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
71 to gvim. The one exception to this is Sun Microsystem's dtterm. The dtterm
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 from Sun has a "sign gutter" for showing signs.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 1.4 Message Footer *gui-footer*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
77 The message footer can be used to display messages from a debugger or IPE. It
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
78 can also be used to display menu and toolbar tips. The footer area is at the
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 bottom of the GUI window, below the line used to display colon commands.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 The display of the footer is controlled by the 'guioptions' letter 'F'.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 1.5 Balloon Evaluation *balloon-eval*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 This feature allows a debugger, or other external tool, to display dynamic
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 188
diff changeset
87 information based on where the mouse is pointing. The purpose of this feature
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 was to allow Sun's Visual WorkShop debugger to display expression evaluations.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 However, the feature was implemented in as general a manner as possible and
16808
c002c4899529 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16553
diff changeset
90 could be used for displaying other information as well. The functionality is
c002c4899529 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 16553
diff changeset
91 limited though, for advanced popups see |popup-window|.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
17372
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16808
diff changeset
93 Another way to use the balloon is with the 'balloonexpr' option. This is
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16808
diff changeset
94 completely user definable.
b9bc47742df6 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 16808
diff changeset
95
170
8c60f65311fa updated for version 7.0052
vimboss
parents: 147
diff changeset
96 The Balloon Evaluation has some settable parameters too. For Motif the font
8c60f65311fa updated for version 7.0052
vimboss
parents: 147
diff changeset
97 list and colors can be set via X resources (XmNballoonEvalFontList,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 XmNballoonEvalBackground, and XmNballoonEvalForeground).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 The 'balloondelay' option sets the delay before an attempt is made to show a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 balloon.
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10198
diff changeset
101 The 'ballooneval' and/or the 'balloonevalterm' option needs to be set to
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10198
diff changeset
102 switch it on.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
12909
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10198
diff changeset
104 Balloon evaluation is only available in the GUI when compiled with the
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10198
diff changeset
105 |+balloon_eval| feature. For the terminal the |+balloon_eval_term| feature
1578c0ba0dd1 Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 10198
diff changeset
106 matters.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 The Balloon evaluation functions are also used to show a tooltip for the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 toolbar. The 'ballooneval' option does not need to be set for this. But the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 other settings apply.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 2. Vim Compile Options *debugger-compilation*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
18972
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18879
diff changeset
115 The debugger features were added for use with Sun's Visual WorkShop Integrated
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18879
diff changeset
116 Programming Environment (ipe). However, they were done in as generic a manner
19163
63beef1ca62c Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18972
diff changeset
117 as possible so that integration with other debuggers could also use these
18972
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18879
diff changeset
118 features.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 The following compile time preprocessor variables control the features:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 Alternate Command Input ALT_X_INPUT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 Debug Glyphs FEAT_SIGNS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 Debug Highlights FEAT_SIGNS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 Message Footer FEAT_FOOTER
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 Balloon Evaluation FEAT_BEVAL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
18972
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18879
diff changeset
128 The support specifically for Sun Visual WorkShop has been removed, since the
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18879
diff changeset
129 product no longer exists.
147
2f5a3b881ada updated for version 7.0046
vimboss
parents: 7
diff changeset
130
2f5a3b881ada updated for version 7.0046
vimboss
parents: 7
diff changeset
131 For Sun NetBeans support see |netbeans|.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
18972
130acb903dbe Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 18879
diff changeset
133
14421
2f7e67dd088c Update runtime files.
Christian Brabandt <cb@256bit.org>
parents: 13963
diff changeset
134 vim:tw=78:sw=4:ts=8:noet:ft=help:norl: