summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2020-12-31 20:37:43 +0100
committerSébastien Helleu <flashcode@flashtux.org>2020-12-31 20:37:43 +0100
commit2ad3da03a2f97f6760d2e333b1b03a11a6639baa (patch)
tree99afbbd041da9a1a179b754e9c87b559cef47a19 /doc/en
parent33c7b961464b173aed9a5976f4fa1158a65805c0 (diff)
downloadweechat-2ad3da03a2f97f6760d2e333b1b03a11a6639baa.zip
core: display more verbose debug with two "-d" in command /eval
Now a single -d in command /eval shows less debug messages than previous versions. To get the same debug messages than previous versions, two -d must be used.
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/includes/autogen_user_commands.en.adoc4
-rw-r--r--doc/en/weechat_plugin_api.en.adoc4
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/en/includes/autogen_user_commands.en.adoc b/doc/en/includes/autogen_user_commands.en.adoc
index 4f9592027..43add3fa5 100644
--- a/doc/en/includes/autogen_user_commands.en.adoc
+++ b/doc/en/includes/autogen_user_commands.en.adoc
@@ -1302,11 +1302,11 @@ infolists: display infos about infolists
----
/eval [-n|-s] [-d] <expression>
- [-n] [-d] -c <expression1> <operator> <expression2>
+ [-n] [-d [-d]] -c <expression1> <operator> <expression2>
-n: display result without sending it to buffer (debug mode)
-s: split expression before evaluating it (many commands can be separated by semicolons)
- -d: display debug output after evaluation
+ -d: display debug output after evaluation (with two -d: more verbose debug)
-c: evaluate as condition: use operators and parentheses, return a boolean value ("0" or "1")
expression: expression to evaluate, variables with format ${variable} are replaced (see below); many commands can be separated by semicolons
operator: a logical or comparison operator:
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 3ace5375a..03a8982a0 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -2246,6 +2246,10 @@ Arguments:
** _regex_replace_: the replacement text to use with _regex_, to replace
text in _expr_ (the _regex_replace_ is evaluated on each match of _regex_
against _expr_, until no match is found)
+** _debug_: debug level (string with integer number ≥ 1), if enabled, a key
+ "debug_output" is added in hashtable _options_:
+*** _1_: enable debug
+*** _2_: enable more verbose debug
Return value: