Add GDB and Valgrind examples
This commit is contained in:
parent
471e90f888
commit
668acd0246
3 changed files with 11 additions and 0 deletions
BIN
gdb_colout.png
Normal file
BIN
gdb_colout.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 34 KiB |
11
index.md
11
index.md
|
|
@ -95,11 +95,22 @@ following shortcut:
|
|||
|
||||

|
||||
|
||||
You can colorize almost any text stream to make it more readable, see this comparison of the output of Valgrind:
|
||||
|
||||

|
||||
|
||||
You can, of course, combine several calls to colout using pipes:
|
||||
`make 2>&1 | colout -t cmake | colout -t g++`
|
||||
|
||||

|
||||
|
||||
As colout is a KISS tool, you can even use it in hacks involving the shell,
|
||||
like colorizing the output of GDB commands:
|
||||
|
||||

|
||||
|
||||
Try the `example.gdbinit` shipped with colout (copy/link it as `~/.gdbinit`).
|
||||
|
||||
|
||||
## Tips
|
||||
|
||||
|
|
|
|||
BIN
valgrind_colout.png
Normal file
BIN
valgrind_colout.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
Loading…
Add table
Add a link
Reference in a new issue