]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug/cli: add some debugging commands for developers
authorWilly Tarreau <w@1wt.eu>
Mon, 20 May 2019 12:25:05 +0000 (14:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 May 2019 14:59:30 +0000 (16:59 +0200)
commit6bdf3e9b111bd197ad1d933c87b6229dbd782ad1
tree5ea0c12193212f1dd7996242701746db72d5a894
parent56131ca58e3427fbee48db6da381db7daf367774
MINOR: debug/cli: add some debugging commands for developers

When haproxy is built with DEBUG_DEV, the following commands are added
to the CLI :

  debug dev close <fd>        : close this file descriptor
  debug dev delay [ms]        : sleep this long
  debug dev exec  [cmd] ...   : show this command's output
  debug dev exit  [code]      : immediately exit the process
  debug dev hex   <addr> [len]: dump a memory area
  debug dev log   [msg] ...   : send this msg to global logs
  debug dev loop  [ms]        : loop this long
  debug dev panic             : immediately trigger a panic
  debug dev tkill [thr] [sig] : send signal to thread

These are essentially aimed at helping developers trigger certain
conditions and are expected to be complemented over time.
Makefile
doc/management.txt
src/debug.c