1
- *terminal.txt* For Vim version 9.0. Last change: 2022 Nov 10
1
+ *terminal.txt* For Vim version 9.0. Last change: 2023 Aug 23
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -38,6 +38,7 @@ If the result is "1" you have it.
38
38
Example session | termdebug-example |
39
39
Stepping through code | termdebug-stepping |
40
40
Inspecting variables | termdebug-variables |
41
+ Navigating stack frames | termdebug-frames |
41
42
Other commands | termdebug-commands |
42
43
Events | termdebug-events |
43
44
Prompt mode | termdebug-prompt |
@@ -1376,6 +1377,18 @@ This is similar to using "print" in the gdb window.
1376
1377
You can usually shorten `:Evaluate ` to `:Ev` .
1377
1378
1378
1379
1380
+ Navigating stack frames ~
1381
+ *termdebug-frames* *:Frame* *:Up* *:Down*
1382
+ `:Frame` [frame] select frame [frame] , which is a frame number,
1383
+ address, or function name (default: current frame)
1384
+ `:Up` [count] go up [count] frames (default: 1; the frame that
1385
+ called the current)
1386
+ `+ ` same (see | termdebug_map_plus | to disable)
1387
+ `:Down` [count] go down [count] frames (default: 1; the frame called
1388
+ by the current)
1389
+ `- ` same (see | termdebug_map_minus | to disable)
1390
+
1391
+
1379
1392
Other commands ~
1380
1393
*termdebug-commands*
1381
1394
*:Gdb* jump to the gdb window
@@ -1384,6 +1397,9 @@ Other commands ~
1384
1397
isn't one
1385
1398
*:Asm* jump to the window with the disassembly, create it if there
1386
1399
isn't one
1400
+ *:Var* jump to the window with the local and argument variables,
1401
+ create it if there isn't one. This window updates whenever the
1402
+ program is stopped
1387
1403
1388
1404
Events ~
1389
1405
*termdebug-events*
@@ -1446,20 +1462,37 @@ If there is no g:termdebug_config you can use: >
1446
1462
let g:termdebug_use_prompt = 1
1447
1463
<
1448
1464
*termdebug_map_K*
1449
- The K key is normally mapped to :Evaluate. If you do not want this use: >
1465
+ The K key is normally mapped to | :Evaluate | . If you do not want this use: >
1450
1466
let g:termdebug_config['map_K'] = 0
1451
1467
If there is no g:termdebug_config you can use: >
1452
1468
let g:termdebug_map_K = 0
1469
+ <
1470
+ *termdebug_map_minus*
1471
+ The - key is normally mapped to | :Down | . If you do not want this use: >
1472
+ let g:termdebug_config['map_minus'] = 0
1473
+ <
1474
+ *termdebug_map_plus*
1475
+ The + key is normally mapped to | :Up | . If you do not want this use: >
1476
+ let g:termdebug_config['map_plus'] = 0
1453
1477
<
1454
1478
*termdebug_disasm_window*
1455
- If you want the Asm window shown by default, set the flag to 1.
1456
- the "disasm_window_height" entry can be used to set the window height: >
1479
+ If you want the Asm window shown by default, set the "disasm_window" flag to
1480
+ 1. The "disasm_window_height" entry can be used to set the window height: >
1457
1481
let g:termdebug_config['disasm_window'] = 1
1458
1482
let g:termdebug_config['disasm_window_height'] = 15
1459
1483
If there is no g:termdebug_config you can use: >
1460
1484
let g:termdebug_disasm_window = 15
1461
1485
Any value greater than 1 will set the Asm window height to that value.
1462
1486
1487
+ *termdebug_variables_window*
1488
+ If you want the Var window shown by default, set the flag to 1.
1489
+ the "variables_window_height" entry can be used to set the window height: >
1490
+ let g:termdebug_config['variables_window'] = 1
1491
+ let g:termdebug_config['variables_window_height'] = 15
1492
+ If there is no g:termdebug_config you can use: >
1493
+ let g:termdebug_variables_window = 15
1494
+ Any value greater than 1 will set the Var window height to that value.
1495
+
1463
1496
Communication ~
1464
1497
*termdebug-communication*
1465
1498
There is another, hidden, buffer, which is used for Vim to communicate with
@@ -1499,7 +1532,7 @@ The function will be called with the list of arguments so far, and a second
1499
1532
argument that is the name of the pty.
1500
1533
*gdb-version*
1501
1534
Only debuggers fully compatible with gdb will work. Vim uses the GDB/MI
1502
- interface. The "new-ui" command requires gdb version 7.12 or later. if you
1535
+ interface. The "new-ui" command requires gdb version 7.12 or later. If you
1503
1536
get this error:
1504
1537
Undefined command: "new-ui". Try "help".~
1505
1538
Then your gdb is too old.
@@ -1541,6 +1574,20 @@ If there is no g:termdebug_config you can use: >
1541
1574
let g:termdebug_popup = 0
1542
1575
1543
1576
1577
+ Change default signs ~
1578
+ *termdebug_signs*
1579
+ Termdebug uses the last two characters of the breakpoint ID in the
1580
+ signcolumn to represent breakpoints. For example, breakpoint ID 133
1581
+ will be displayed as `33 ` .
1582
+
1583
+ If you want to customize the breakpoint signs: >
1584
+ let g:termdebug_config['sign'] = '>>'
1585
+ If there is no g:terminal_config yet you can use: >
1586
+ let g:termdebug_config = {'sign': '>>'}
1587
+
1588
+ After this, breakpoints will be displayed as `>>` in the signcolumn.
1589
+
1590
+
1544
1591
Window toolbar ~
1545
1592
*termdebug_winbar*
1546
1593
By default the Termdebug plugin creates a window toolbar if the mouse is
0 commit comments