|
39 | 39 | Python REPL plugin for automatic time tracking and metrics generated from your
|
40 | 40 | programming activity.
|
41 | 41 |
|
42 |
| - |
| 42 | + |
43 | 43 |
|
44 | 44 | Supported REPLs:
|
45 | 45 |
|
@@ -81,6 +81,23 @@ from repl_python_wakatime.iptpython import install_hook
|
81 | 81 | install_hook(c)
|
82 | 82 | ```
|
83 | 83 |
|
| 84 | +- [x] [gdb](https://sourceware.org/gdb/): |
| 85 | + |
| 86 | +Your `gdb` must be compiled with |
| 87 | +[python port](https://sourceware.org/gdb/current/onlinedocs/gdb.html/Python.html). |
| 88 | + |
| 89 | +`~/.config/gdb/gdbinit`: |
| 90 | + |
| 91 | +```gdb |
| 92 | +source /the/path/of/repl_python_wakatime/gdb.py |
| 93 | +``` |
| 94 | + |
| 95 | +See [GDB Hooks](https://sourceware.org/gdb/current/onlinedocs/gdb.html/Hooks.html) |
| 96 | +to know more. |
| 97 | + |
| 98 | +Use environment variables `HOOK_NAMES=hook1:hook2` to defines which |
| 99 | +[hook](#configure) will be used. |
| 100 | + |
84 | 101 | - [x] [ptipython](https://github.com/prompt-toolkit/ptpython): Same as
|
85 | 102 | [ipython](https://github.com/ipython/ipython).
|
86 | 103 | - [ ] [bpython](https://github.com/bpython/bpython)
|
@@ -109,14 +126,6 @@ REPLs are similar. Currently, `hook_function` can be:
|
109 | 126 | - [rescuetime](https://www.rescuetime.com/)
|
110 | 127 | - ...
|
111 | 128 |
|
112 |
| -## Related programs |
113 |
| - |
114 |
| -Some programs is written in python or providing a python port. |
115 |
| -We can use this project to statistic their time: |
116 |
| - |
117 |
| -- [gdb](https://sourceware.org/gdb): See |
118 |
| - [here](https://github.com/Freed-Wu/gdb-prompt) |
119 |
| - |
120 | 129 | ## Similar projects
|
121 | 130 |
|
122 | 131 | - [wakatime plugins for python and many shells](https://wakatime.com/terminal)
|
|
0 commit comments