sphinx - when i am debug using gdb compiler ,can't able see the printed values in console window -
i've downloaded sphinx-2.2.5-release version ,installed successfully...
steps::
./configure --prefix=/home/syscon/documents/work/sphinx-2.2.5-release --with-debug
sudo make clean
sudo make
sudo make install
mysql -u root -p** tests -e "select * tests.documents"
mysql -u root -p** tests < example.sql
sudo ./src/indexer --all
to debug searchd in console,
sudo gdb -tui --args ./src/searchd --console
once step has been done,it goes inside console window,
break sendsearchresponse
run
void sendsearchresponse ( searchhandler_c & thandler, inputbuffer_c & treq, int isock, int iver, int imasterver ) { .... .... // serve response netoutputbuffer_c tout ( isock ); int ireplylen = 0; bool bagentmode = ( imasterver>0 ); cout<< "length" << endl; cout << ireplylen << endl; }
i tried printing statements inside function,while debugging,it crosses printf statements not printing in console window.
what shall need inorder print statements in console window?
will need enable thing in sphinx.conf?
Comments
Post a Comment