|
1 |
| -*terminal.txt* For Vim version 9.1. Last change: 2024 Jun 13 |
| 1 | +*terminal.txt* For Vim version 9.1. Last change: 2024 Jun 20 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -648,7 +648,7 @@ term_getjob({buf}) *term_getjob()*
|
648 | 648 | Get the Job associated with terminal window {buf}.
|
649 | 649 | {buf} is used as with |term_getsize()|.
|
650 | 650 | Returns |v:null| when there is no job. In Vim9 script, return
|
651 |
| - null_job when there is no job. |
| 651 | + |null_job| when there is no job. |
652 | 652 |
|
653 | 653 | Can also be used as a |method|: >
|
654 | 654 | GetBufnr()->term_getjob()
|
@@ -1283,6 +1283,15 @@ When the debugger ends, typically by typing "quit" in the gdb window, the two
|
1283 | 1283 | opened windows are closed.
|
1284 | 1284 |
|
1285 | 1285 | Only one debugger can be active at a time.
|
| 1286 | + |
| 1287 | + *termdebug-timeout* |
| 1288 | +Depending on how gdb is launched, termdebug startup time may vary. |
| 1289 | +To avoid termdebug to get stuck if the startup process of gdb takes too long, |
| 1290 | +a configurable timeout is included. Such time out is configurable in terms of |
| 1291 | +multiple of 10ms: > |
| 1292 | + let g:termdebug_config['timeout'] = 500 # 500 * 10ms = 5 seconds. |
| 1293 | +
|
| 1294 | +The default timeout is 3000 ms. |
1286 | 1295 | *:TermdebugCommand*
|
1287 | 1296 | If you want to give specific commands to the command being debugged, you can
|
1288 | 1297 | use the `:TermdebugCommand` command followed by the command name and
|
@@ -1383,8 +1392,8 @@ Put focus on the gdb window to type commands there. Some common ones are:
|
1383 | 1392 | *:Run* *:Arguments*
|
1384 | 1393 | In the window showing the source code these commands can be used to control
|
1385 | 1394 | gdb:
|
1386 |
| - :Run [args] run the program with [args] or the previous arguments |
1387 |
| - :Arguments {args} set arguments for the next `:Run` |
| 1395 | + `:Run` [args] run the program with [args] or the previous arguments |
| 1396 | + `:Arguments` {args} set arguments for the next `:Run` |
1388 | 1397 |
|
1389 | 1398 | *:Break* set a breakpoint at the cursor position
|
1390 | 1399 | :Break {position}
|
@@ -1430,25 +1439,25 @@ breakpoint, or use the "Clear breakpoint" right-click menu entry.
|
1430 | 1439 |
|
1431 | 1440 | Inspecting variables ~
|
1432 | 1441 | *termdebug-variables* *:Evaluate*
|
1433 |
| - :Evaluate evaluate the expression under the cursor |
1434 |
| - K same (see |termdebug_map_K| to disable) |
1435 |
| - :Evaluate {expr} evaluate {expr} |
1436 |
| - :'<,'>Evaluate evaluate the Visually selected text |
| 1442 | + `:Evaluate` evaluate the expression under the cursor |
| 1443 | + `K` same (see |termdebug_map_K| to disable) |
| 1444 | + `:Evaluate` {expr} evaluate {expr} |
| 1445 | + `:'<,'>Evaluate` evaluate the Visually selected text |
1437 | 1446 |
|
1438 | 1447 | This is similar to using "print" in the gdb window.
|
1439 | 1448 | You can usually shorten `:Evaluate` to `:Ev`.
|
1440 | 1449 |
|
1441 | 1450 |
|
1442 | 1451 | Navigating stack frames ~
|
1443 | 1452 | *termdebug-frames* *:Frame* *:Up* *:Down*
|
1444 |
| - :Frame [frame] select frame [frame], which is a frame number, |
| 1453 | + `:Frame` [frame] select frame [frame], which is a frame number, |
1445 | 1454 | address, or function name (default: current frame)
|
1446 |
| - :Up [count] go up [count] frames (default: 1; the frame that |
| 1455 | + `:Up` [count] go up [count] frames (default: 1; the frame that |
1447 | 1456 | called the current)
|
1448 |
| - + same (see |termdebug_map_plus| to disable) |
1449 |
| - :Down [count] go down [count] frames (default: 1; the frame called |
| 1457 | + `+` same (see |termdebug_map_plus| to disable) |
| 1458 | + `:Down` [count] go down [count] frames (default: 1; the frame called |
1450 | 1459 | by the current)
|
1451 |
| - - same (see |termdebug_map_minus| to disable) |
| 1460 | + `-` same (see |termdebug_map_minus| to disable) |
1452 | 1461 |
|
1453 | 1462 |
|
1454 | 1463 | Other commands ~
|
@@ -1524,6 +1533,9 @@ If there is no g:termdebug_config you can use: >
|
1524 | 1533 | let g:termdebug_use_prompt = 1
|
1525 | 1534 | <
|
1526 | 1535 | Mappings ~
|
| 1536 | +The termdebug plugin enables a few default mappings. All those mappings |
| 1537 | +are reset to their original values once the termdebug session concludes. |
| 1538 | + |
1527 | 1539 | *termdebug_map_K* *termdebug-mappings*
|
1528 | 1540 | The K key is normally mapped to |:Evaluate| unless a buffer local (|:map-local|)
|
1529 | 1541 | mapping to K already exists. If you do not want this use: >
|
|
0 commit comments