mirror of
https://github.com/weechat/weechat.git
synced 2026-06-12 14:14:48 +02:00
core: add option "infolists" for command /debug
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.3.6-dev, 2011-05-26
|
||||
v0.3.6-dev, 2011-06-01
|
||||
|
||||
|
||||
Version 0.3.6 (under dev!)
|
||||
--------------------------
|
||||
|
||||
* core: add option "infolists" for command /debug
|
||||
* core: add horizontal scrolling for buffers with free content (command
|
||||
/window scroll_horiz) (task #11112)
|
||||
* api: fix bug with function config_set_desc_plugin (use immediately
|
||||
|
||||
@@ -145,18 +145,19 @@ Erweiterung: Name der Erweiterung ('weechat' für interne WeeChat Befehle)
|
||||
/debug list
|
||||
set <plugin> <level>
|
||||
dump [<plugin>]
|
||||
buffer|color|memory|term|windows
|
||||
buffer|color|infolists|memory|term|windows
|
||||
|
||||
list: zeigt alle Erweiterungen mit Debuglevel an
|
||||
set: setzt den Level der Protokollierung für eine Erweiterung
|
||||
plugin: Name der Erweiterung ("core" für den WeeChat Kern)
|
||||
level: Debuglevel der Erweiterung (0 = deaktiviert das Debug)
|
||||
dump: Speicherabbild in die WeeChat Protokolldatei schreiben (wie bei einem Programmabsturz)
|
||||
buffer: speichert den Bufferinhalt als hexadezimale Ausgabe in die Protokolldatei
|
||||
color: zeigt Informationen über die aktuellen Farbpaarungen an
|
||||
memory: gibt Informationen über den genutzten Speicher aus
|
||||
term: gibt Informationen über das Terminal und verfügbare Farben aus
|
||||
windows: zeigt die Fensterstruktur an
|
||||
list: list plugins with debug levels
|
||||
set: set debug level for plugin
|
||||
plugin: name of plugin ("core" for WeeChat core)
|
||||
level: debug level for plugin (0 = disable debug)
|
||||
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
|
||||
buffer: dump buffer content with hexadecimal values in log file
|
||||
color: display infos about current color pairs
|
||||
infolists: display infos about infolists
|
||||
memory: display infos about memory usage
|
||||
term: display infos about terminal
|
||||
windows: display windows tree
|
||||
........................................
|
||||
|
||||
[command]*`filter`* Filterfunktion um Nachrichten in Buffern zu aus- oder einzublenden, dazu können Tags oder regulären Ausdrücken verwendet werden::
|
||||
|
||||
@@ -145,18 +145,19 @@ command: command to execute (a '/' is automatically added if not found at beginn
|
||||
/debug list
|
||||
set <plugin> <level>
|
||||
dump [<plugin>]
|
||||
buffer|color|memory|term|windows
|
||||
buffer|color|infolists|memory|term|windows
|
||||
|
||||
list: list plugins with debug levels
|
||||
set: set debug level for plugin
|
||||
plugin: name of plugin ("core" for WeeChat core)
|
||||
level: debug level for plugin (0 = disable debug)
|
||||
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
|
||||
buffer: dump buffer content with hexadecimal values in log file
|
||||
color: display infos about current color pairs
|
||||
memory: display infos about memory usage
|
||||
term: display infos about terminal
|
||||
windows: display windows tree
|
||||
list: list plugins with debug levels
|
||||
set: set debug level for plugin
|
||||
plugin: name of plugin ("core" for WeeChat core)
|
||||
level: debug level for plugin (0 = disable debug)
|
||||
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
|
||||
buffer: dump buffer content with hexadecimal values in log file
|
||||
color: display infos about current color pairs
|
||||
infolists: display infos about infolists
|
||||
memory: display infos about memory usage
|
||||
term: display infos about terminal
|
||||
windows: display windows tree
|
||||
........................................
|
||||
|
||||
[command]*`filter`* filter messages in buffers, to hide/show them according to tags or regex::
|
||||
|
||||
@@ -145,7 +145,7 @@ extension: nom de l'extension ('weechat' pour une commande interne WeeChat)
|
||||
/debug list
|
||||
set <extension> <niveau>
|
||||
dump [<extension>]
|
||||
buffer|color|memory|term|windows
|
||||
buffer|color|infolists|memory|term|windows
|
||||
|
||||
list: lister les extensions avec leur niveau de debug
|
||||
set: définir le niveau de debug pour l'extension
|
||||
@@ -154,6 +154,7 @@ extension: nom de l'extension ("core" pour le coeur de WeeChat)
|
||||
dump: afficher les variables mémoire WeeChat dans le fichier log (les mêmes messages sont affichés lorsque WeeChat plante)
|
||||
buffer: afficher le contenu du tampon en valeurs hexadécimales dans le fichier log
|
||||
color: afficher des infos sur les paires de couleur courantes
|
||||
infolists: afficher des infos sur les infolists
|
||||
memory: afficher des infos sur l'utilisation de la mémoire
|
||||
term: afficher des infos sur le terminal
|
||||
windows: afficher l'arbre des fenêtres
|
||||
|
||||
@@ -143,20 +143,21 @@ comando: comando da eseguire (una '/' viene aggiunta automaticamente se non trov
|
||||
[command]*`debug`* attiva debug per core/plugin::
|
||||
........................................
|
||||
/debug list
|
||||
set <plugin> <livello>
|
||||
set <plugin> <level>
|
||||
dump [<plugin>]
|
||||
buffer|color|memory|term|windows
|
||||
buffer|color|infolists|memory|term|windows
|
||||
|
||||
list: elenca i plugin con i livelli di debug
|
||||
set: imposta il livello di debug per il plugin
|
||||
plugin: nome del plugin ("core" per il core di WeeChat)
|
||||
livello: livello di debug per il plugin (0 = disattiva debug)
|
||||
dump: salva un dump della memoria nel file di log di WeeChat (lo stesso dump viene salvato in caso di crash di WeeChat)
|
||||
buffer: esegue un dump del contenuto del buffer con valori esadecimali nel file di log
|
||||
color: mostra informazioni sulle coppie di colore correnti
|
||||
memory: mostra informazioni sull'uso della memoria
|
||||
term: mostra informazioni sul terminale
|
||||
windows: mostra l'albero delle finestre
|
||||
list: list plugins with debug levels
|
||||
set: set debug level for plugin
|
||||
plugin: name of plugin ("core" for WeeChat core)
|
||||
level: debug level for plugin (0 = disable debug)
|
||||
dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
|
||||
buffer: dump buffer content with hexadecimal values in log file
|
||||
color: display infos about current color pairs
|
||||
infolists: display infos about infolists
|
||||
memory: display infos about memory usage
|
||||
term: display infos about terminal
|
||||
windows: display windows tree
|
||||
........................................
|
||||
|
||||
[command]*`filter`* filtra messaggi nei buffer, per nascondere/mostrare in base a tag o regexp::
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.6-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-05-18 12:03+0200\n"
|
||||
"POT-Creation-Date: 2011-05-31 09:11+0200\n"
|
||||
"PO-Revision-Date: 2011-05-15 10:51+0200\n"
|
||||
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1069,25 +1069,28 @@ msgstr ""
|
||||
msgid "control debug for core/plugins"
|
||||
msgstr "spřáva ladění pro jádro/pluginy"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
|
||||
"memory|term|windows"
|
||||
msgstr ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
"WeeChat crashes)\n"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
"windows: display windows tree"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
"infolists: display infos about infolists\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
" windows: display windows tree"
|
||||
msgstr ""
|
||||
" list: vypsat pluginy s urovněmi ladění\n"
|
||||
" set: nastavit úroveň logování pro plugin\n"
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.6-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-05-18 12:03+0200\n"
|
||||
"POT-Creation-Date: 2011-05-31 09:11+0200\n"
|
||||
"PO-Revision-Date: 2011-05-15 10:51+0200\n"
|
||||
"Last-Translator: Nils G.\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1088,25 +1088,28 @@ msgstr ""
|
||||
msgid "control debug for core/plugins"
|
||||
msgstr "Debug-Kontrolle für Hauptprogramm und/oder Erweiterung"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
|
||||
"memory|term|windows"
|
||||
msgstr ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
"WeeChat crashes)\n"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
"windows: display windows tree"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
"infolists: display infos about infolists\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
" windows: display windows tree"
|
||||
msgstr ""
|
||||
" list: zeigt alle Erweiterungen mit Debuglevel an\n"
|
||||
" set: setzt den Level der Protokollierung für eine Erweiterung\n"
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.6-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-05-18 12:03+0200\n"
|
||||
"POT-Creation-Date: 2011-05-31 09:11+0200\n"
|
||||
"PO-Revision-Date: 2011-05-15 10:51+0200\n"
|
||||
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1075,25 +1075,28 @@ msgstr ""
|
||||
msgid "control debug for core/plugins"
|
||||
msgstr "controla los mensajes de depuración para el núcleo/plugins"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
|
||||
"memory|term|windows"
|
||||
msgstr ""
|
||||
"list || set <plugin> <nivel> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
"WeeChat crashes)\n"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
"windows: display windows tree"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
"infolists: display infos about infolists\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
" windows: display windows tree"
|
||||
msgstr ""
|
||||
" list: listar plugins con niveles de depuración.\n"
|
||||
" set: configura el nivel de depuración para plugin.\n"
|
||||
|
||||
@@ -21,8 +21,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.6-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-05-18 12:03+0200\n"
|
||||
"PO-Revision-Date: 2011-05-18 12:03+0200\n"
|
||||
"POT-Creation-Date: 2011-05-31 09:11+0200\n"
|
||||
"PO-Revision-Date: 2011-05-31 09:12+0200\n"
|
||||
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: French\n"
|
||||
@@ -1076,24 +1076,25 @@ msgid "control debug for core/plugins"
|
||||
msgstr "contrôle du debug pour le coeur/les extensions"
|
||||
|
||||
msgid ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
|
||||
"memory|term|windows"
|
||||
msgstr ""
|
||||
"list || set <extension> <niveau> || dump [<extension>] || buffer|color|"
|
||||
"memory|term|windows"
|
||||
"infolists|memory|term|windows"
|
||||
|
||||
msgid ""
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
"WeeChat crashes)\n"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
"windows: display windows tree"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
"infolists: display infos about infolists\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
" windows: display windows tree"
|
||||
msgstr ""
|
||||
" list: lister les extensions avec leur niveau de debug\n"
|
||||
" set: définir le niveau de debug pour l'extension\n"
|
||||
@@ -1104,6 +1105,7 @@ msgstr ""
|
||||
" buffer: afficher le contenu du tampon en valeurs hexadécimales dans le "
|
||||
"fichier log\n"
|
||||
" color: afficher des infos sur les paires de couleur courantes\n"
|
||||
"infolists: afficher des infos sur les infolists\n"
|
||||
" memory: afficher des infos sur l'utilisation de la mémoire\n"
|
||||
" term: afficher des infos sur le terminal\n"
|
||||
" windows: afficher l'arbre des fenêtres"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.6-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-05-18 12:03+0200\n"
|
||||
"POT-Creation-Date: 2011-05-31 09:11+0200\n"
|
||||
"PO-Revision-Date: 2011-05-15 10:51+0200\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1028,23 +1028,24 @@ msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
|
||||
"memory|term|windows"
|
||||
msgstr "dump | buffer | windows"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
"WeeChat crashes)\n"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
"windows: display windows tree"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
"infolists: display infos about infolists\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
" windows: display windows tree"
|
||||
msgstr ""
|
||||
" dump: memóriatartalom mentése a WeeChat logba (ugyanez a tartalom íródik "
|
||||
"a WeeChat összeomlásakor)\n"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.6-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-05-18 12:03+0200\n"
|
||||
"POT-Creation-Date: 2011-05-31 09:11+0200\n"
|
||||
"PO-Revision-Date: 2011-05-15 10:52+0200\n"
|
||||
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1067,25 +1067,28 @@ msgstr ""
|
||||
msgid "control debug for core/plugins"
|
||||
msgstr "attiva debug per core/plugin"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
|
||||
"memory|term|windows"
|
||||
msgstr ""
|
||||
"list || set <plugin> <livello> || dump [<plugin>] || buffer|color|memory|"
|
||||
"term|windows"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
"WeeChat crashes)\n"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
"windows: display windows tree"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
"infolists: display infos about infolists\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
" windows: display windows tree"
|
||||
msgstr ""
|
||||
" list: elenca i plugin con i livelli di debug\n"
|
||||
" set: imposta il livello di debug per il plugin\n"
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.6-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-05-18 12:03+0200\n"
|
||||
"POT-Creation-Date: 2011-05-31 09:11+0200\n"
|
||||
"PO-Revision-Date: 2011-05-15 10:52+0200\n"
|
||||
"Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1077,25 +1077,28 @@ msgstr ""
|
||||
msgid "control debug for core/plugins"
|
||||
msgstr "kontrola debugu dla rdzenia/wtyczek"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
|
||||
"memory|term|windows"
|
||||
msgstr ""
|
||||
"list || set <plugin> <poziom> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
"WeeChat crashes)\n"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
"windows: display windows tree"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
"infolists: display infos about infolists\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
" windows: display windows tree"
|
||||
msgstr ""
|
||||
" list: wyświetla wtyczki z poziomem debugowania\n"
|
||||
" set: ustawia poziom debugowania dla wtyczki\n"
|
||||
|
||||
+14
-13
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.6-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-05-18 12:03+0200\n"
|
||||
"POT-Creation-Date: 2011-05-31 09:11+0200\n"
|
||||
"PO-Revision-Date: 2011-05-15 10:52+0200\n"
|
||||
"Last-Translator: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1091,25 +1091,26 @@ msgstr "cotrolar depuração para core/plugins"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
|
||||
"memory|term|windows"
|
||||
msgstr "[list | set plugin level | dump [plugin] | buffer | windows | term]"
|
||||
|
||||
# find a better translation to dump?
|
||||
# find a better translation do log?
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
"WeeChat crashes)\n"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
"windows: display windows tree"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
"infolists: display infos about infolists\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
" windows: display windows tree"
|
||||
msgstr ""
|
||||
" set: configura o nível de log para o plugin\n"
|
||||
" plugin: nome do plugin (\"core\" para o core do WeeChat)\n"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.6-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-05-18 12:03+0200\n"
|
||||
"POT-Creation-Date: 2011-05-31 09:11+0200\n"
|
||||
"PO-Revision-Date: 2011-05-15 10:52+0200\n"
|
||||
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1035,23 +1035,24 @@ msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
|
||||
"memory|term|windows"
|
||||
msgstr "dump | buffer | windows"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
"WeeChat crashes)\n"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
"windows: display windows tree"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
"infolists: display infos about infolists\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
" windows: display windows tree"
|
||||
msgstr ""
|
||||
" dump: сохранить дамп памяти в журнал WeeChat (аналогично дампу при крахе "
|
||||
"WeeChat)\n"
|
||||
|
||||
+14
-13
@@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2011-05-18 12:03+0200\n"
|
||||
"POT-Creation-Date: 2011-05-31 09:11+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@@ -891,22 +891,23 @@ msgid "control debug for core/plugins"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|memory|term|"
|
||||
"windows"
|
||||
"list || set <plugin> <level> || dump [<plugin>] || buffer|color|infolists|"
|
||||
"memory|term|windows"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same dump is written when "
|
||||
"WeeChat crashes)\n"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
"windows: display windows tree"
|
||||
" buffer: dump buffer content with hexadecimal values in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
"infolists: display infos about infolists\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
" windows: display windows tree"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
|
||||
+17
-11
@@ -1152,6 +1152,10 @@ COMMAND_CALLBACK(debug)
|
||||
{
|
||||
gui_color_dump (buffer);
|
||||
}
|
||||
else if (string_strcasecmp (argv[1], "infolists") == 0)
|
||||
{
|
||||
debug_infolists ();
|
||||
}
|
||||
else if (string_strcasecmp (argv[1], "memory") == 0)
|
||||
{
|
||||
debug_memory ();
|
||||
@@ -4833,24 +4837,26 @@ command_init ()
|
||||
N_("list"
|
||||
" || set <plugin> <level>"
|
||||
" || dump [<plugin>]"
|
||||
" || buffer|color|memory|term|windows"),
|
||||
N_(" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same "
|
||||
" || buffer|color|infolists|memory|term|windows"),
|
||||
N_(" list: list plugins with debug levels\n"
|
||||
" set: set debug level for plugin\n"
|
||||
" plugin: name of plugin (\"core\" for WeeChat core)\n"
|
||||
" level: debug level for plugin (0 = disable debug)\n"
|
||||
" dump: save memory dump in WeeChat log file (same "
|
||||
"dump is written when WeeChat crashes)\n"
|
||||
" buffer: dump buffer content with hexadecimal values "
|
||||
" buffer: dump buffer content with hexadecimal values "
|
||||
"in log file\n"
|
||||
" color: display infos about current color pairs\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
"windows: display windows tree"),
|
||||
" color: display infos about current color pairs\n"
|
||||
"infolists: display infos about infolists\n"
|
||||
" memory: display infos about memory usage\n"
|
||||
" term: display infos about terminal\n"
|
||||
" windows: display windows tree"),
|
||||
"list"
|
||||
" || set %(plugins_names)|core"
|
||||
" || dump %(plugins_names)|core"
|
||||
" || buffer"
|
||||
" || color"
|
||||
" || infolists"
|
||||
" || memory"
|
||||
" || term"
|
||||
" || windows",
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
#ifdef HAVE_MALLINFO
|
||||
#include <malloc.h>
|
||||
#endif
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "weechat.h"
|
||||
#include "wee-backtrace.h"
|
||||
@@ -292,6 +294,95 @@ debug_memory ()
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* debug_infolists: display list of infolists in memory
|
||||
*/
|
||||
|
||||
void
|
||||
debug_infolists ()
|
||||
{
|
||||
struct t_infolist *ptr_infolist;
|
||||
struct t_infolist_item *ptr_item;
|
||||
struct t_infolist_var *ptr_var;
|
||||
int i, count, count_items, count_vars, size_structs, size_data;
|
||||
int total_items, total_vars, total_size;
|
||||
|
||||
count = 0;
|
||||
for (ptr_infolist = weechat_infolists; ptr_infolist;
|
||||
ptr_infolist = ptr_infolist->next_infolist)
|
||||
{
|
||||
count++;
|
||||
}
|
||||
|
||||
gui_chat_printf (NULL, "");
|
||||
gui_chat_printf (NULL, "%d infolists in memory (%s)", count,
|
||||
(count == 0) ?
|
||||
"this is ok!" :
|
||||
"WARNING: this is probably a memory leak in WeeChat or "
|
||||
"plugins/scripts!");
|
||||
|
||||
if (count > 0)
|
||||
{
|
||||
i = 0;
|
||||
total_items = 0;
|
||||
total_vars = 0;
|
||||
total_size = 0;
|
||||
for (ptr_infolist = weechat_infolists; ptr_infolist;
|
||||
ptr_infolist = ptr_infolist->next_infolist)
|
||||
{
|
||||
count_items = 0;
|
||||
count_vars = 0;
|
||||
size_structs = sizeof (*ptr_infolist);
|
||||
size_data = 0;
|
||||
for (ptr_item = ptr_infolist->items; ptr_item;
|
||||
ptr_item = ptr_item->next_item)
|
||||
{
|
||||
count_items++;
|
||||
total_items++;
|
||||
size_structs += sizeof (*ptr_item);
|
||||
for (ptr_var = ptr_item->vars; ptr_var;
|
||||
ptr_var = ptr_var->next_var)
|
||||
{
|
||||
count_vars++;
|
||||
total_vars++;
|
||||
size_structs += sizeof (*ptr_var);
|
||||
if (ptr_var->value)
|
||||
{
|
||||
switch (ptr_var->type)
|
||||
{
|
||||
case INFOLIST_INTEGER:
|
||||
size_data += sizeof (int);
|
||||
break;
|
||||
case INFOLIST_STRING:
|
||||
size_data += strlen ((char *)(ptr_var->value));
|
||||
break;
|
||||
case INFOLIST_POINTER:
|
||||
size_data += sizeof (void *);
|
||||
break;
|
||||
case INFOLIST_BUFFER:
|
||||
size_data += ptr_var->size;
|
||||
break;
|
||||
case INFOLIST_TIME:
|
||||
size_data += sizeof (time_t);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
gui_chat_printf (NULL,
|
||||
" %d: infolist 0x%lx: %d items, %d vars - "
|
||||
"structs: %d, data: %d (total: %d bytes)",
|
||||
i + 1, ptr_infolist, count_items, count_vars,
|
||||
size_structs, size_data, size_structs + size_data);
|
||||
total_size += size_structs + size_data;
|
||||
i++;
|
||||
}
|
||||
gui_chat_printf (NULL,
|
||||
" Total: %d items, %d vars - %d bytes",
|
||||
total_items, total_vars, total_size);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* debug_init: hook signals for debug
|
||||
*/
|
||||
|
||||
@@ -25,6 +25,7 @@ struct t_gui_window_tree;
|
||||
extern void debug_sigsegv ();
|
||||
extern void debug_windows_tree ();
|
||||
extern void debug_memory ();
|
||||
extern void debug_infolists ();
|
||||
extern void debug_init ();
|
||||
|
||||
#endif /* __WEECHAT_DEBUG_H */
|
||||
|
||||
Reference in New Issue
Block a user