-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
debugstring.txt
86 lines (54 loc) · 3.59 KB
/
debugstring.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
*debugstring.txt* Debug, printf()-style, at the speed of light
Nikos Koukis <nickkouk@gmail.com> *debugstring*
==============================================================================
CONTENTS *debugstring-contents*
1. Introduction..........................................|debugstring-intro|
2. Configuration........................................|debugstring-config|
3. Commands...........................................|debugstring-commands|
4. Functions.........................................|debugstring-functions|
5. About.................................................|debugstring-about|
==============================================================================
INTRODUCTION *debugstring-intro*
_ _ _ _ ~
| | | | | | (_) ~
__| | ___| |__ _ _ __ _ ___| |_ _ __ _ _ __ __ _ ~
/ _` |/ _ \ '_ \| | | |/ _` / __| __| '__| | '_ \ / _` | ~
| (_| | __/ |_) | |_| | (_| \__ \ |_| | | | | | | (_| | ~
\__,_|\___|_.__/ \__,_|\__, |___/\__|_| |_|_| |_|\__, | ~
__/ | __/ | ~
|___/ |___/ ~
debugstring aims to automate standard debugging operations (e.g., segfaults).
It does that by facilitating the ubiquitous printf()-debugging i.e., scatter
logging statements around the various code snippets that you want to test.
The form and syntax of the logging statements target the language at hand
(e.g., use printf() in C/C++ but puts() in Ruby)
vim-debugstring should be compatible with Vim >= 7.4.313
==============================================================================
CONFIGURATION *debugstring-config*
To add a logging statement either use the default normal mode mapping
(|g:default_dump_debug_map|) or define your own:
* nmap <your-key-combination> <Plug>DumpDebugStringVar
* nmap <a-second-key-combination> <Plug>DumpDebugStringExpr
==============================================================================
COMMANDS *debugstring-commands*
:ResetDebugCounter *:ResetDebugCounter*
Reset the debugging counter
==============================================================================
FUNCTIONS *debugstring-functions*
Each debug* method supports one (or a family of) programming languages. This
way it takes care of the different logging directives + different syntaxes.
If you want to extend debugstring for language not yet suppoprted you just
have to implement a corresponding s:debug* method and also add a line for that
language in the |g:debugstring_mappings| group
==============================================================================
ABOUT *debugstring-about*
Original version of this package is written by Nikos Koukis - bergercookie
https://github.com/bergercookie
* Thanks to Steve Losh for writing the excellent book "Learn Vimscript the
Hard Way". If that helped you as much as it helped me seriously consider
buying either the e-book or paperback version of it.
http://learnvimscriptthehardway.stevelosh.com/
* Thanks to tpope for providing so much quality vimscript code to work with
and get constant inspiration from while writing this
https://github.com/tpope/
vim:tw=78:ts=8:ft=help:norl: