From c326a053cdf8a4a9ce0fb02448293b45083d553c Mon Sep 17 00:00:00 2001 From: fulup Date: Sat, 1 Jul 2017 00:22:00 +0200 Subject: Ongoing work --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index a694859..bd86da6 100644 --- a/README.md +++ b/README.md @@ -84,11 +84,22 @@ make install # From $INSTALL_PREFIX mkdir $INSTALL_PREFIX/share/wssocks afb-daemon --verbose --token="" --ldpaths=$INSTALL_PREFIX/lib/audio --port=1234 --roothttp=$INSTALL_PREFIX/htdocs/audio-bindings + +# Debug with GDB + In order your debugger to find bindings(sharelib) symbols ldpath and workdir should match with GDB solib-search-path + --workdir=. #default value: in this case solib-search-path is not requirer + --workdir=.. --ldpath=build in this case set (solib-search-path=build) should be used + + To debug from desktop directly within './build' directory use following commands +``` + cd ./build + gdb afb-daemon --args afb-daemon --ldpaths=. --port=1234 --workdir=. --roothttp=../htdocs --tracereq=common --token='' --verbose ``` -# replace hd:XX with your own sound card ID ex: "hw:0", "hw:PCH", ... -Start a browser on http://localhost:1234?devid=hw:XX -Start AlsaMixer and change volume you should see event in your browser +# replace hd:XX with your own sound card ID ex: "hw:0", "hw:PCH", ... +``` +- Start a browser on http://localhost:1234?devid=hw:XX +- Start AlsaMixer and change volume you should see event in your browser ``` alsamixer -D hw:0 ``` -- cgit 1.2.3-korg