[PATCH] HACKING GUIDE entry for SVN_DBG usage in the Debugging Subversion section
From: Gabriela Gibson <gabriela.gibson_at_gmail.com>
Date: Mon, 06 May 2013 12:48:53 +0100
Hi,
I created a short SVN_DBG overview for the debugging page in the
Please let me know if this can be improved.
Gabriela
[[[
* publish/docs/community-guide/debugging.part.html
* publish/docs/community-guide/debugging.toc.html
Suggested by: danielsh
(Just the raw text for ease of reading)
Debugging with SVN_DBG
The SVN_DBG debugging tool is a C Preprocessor macro that sends
It provides an alternative to a debugger such as gdb, or
The svn_debug module contains two debug aid macros that print the
SVN_DBG( ( const char *fmt, ...) ) /* double braces are neccessary */
and
SVN_DBG_PROPS( ( apr_hash_t *props, const char *header_fmt, ...) )
Controlling SVN_DBG output:
* SVN_DBG is enabled whenever svn is configured with
* The SVN test suite turns off SVN_DBG output automatically, to
* When you are done, please be sure to remove any instances of
The SVN_DBG macro definitions and code are located in:
* subversion/include/private/svn_debug.h
Sample patch showing usage of the SVN_DBG macro:
Index: subversion/libsvn_fs_fs/fs_fs.c
/* First, try a cache lookup. If that succeeds, we are done here. */
Sample patch showing usage of the SVN_DBG_PROPS macro:
Index: subversion/svn/proplist-cmd.c
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.