diff --git a/doc/developer-notes.md b/doc/developer-notes.md --- a/doc/developer-notes.md +++ b/doc/developer-notes.md @@ -107,6 +107,23 @@ A full list of comment syntaxes picked up by doxygen can be found at http://www.stack.nl/~dimitri/doxygen/manual/docblocks.html, but if possible use one of the above styles. +Running & debugging tests +------------- + +Unit tests are run via `make check` +For running functional tests, see `/test/README.md` + +Debugging unit tests can be achieved with GDB. Simple example: +``` +cd /build/src/test +gdb test_bitcoin +break interpreter.cpp:295 # No path is necessary, just the file name and line number +run +# GDB hits the breakpoint +p/x opcode # print the value of the variable (in this case, opcode) in hex +c # continue +``` + Development tips and tricks ---------------------------