gdb

GDB commands:
![[Pasted image 20240522101140.png]]
![[Pasted image 20240522101153.png]]

valgrind

bugs: bohrbug: can appear in certain conditions
heisenbugs: cannot appear in the debugging process
We can use a tool called Valgrind to help catch to help catch “heisenbugs” and “bohrbugs”.
emulates your CPU and tracks your memory accesses!

1
valgrind ./bork hello