Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sphinx 当我使用gdb编译器进行调试时,无法在控制台窗口中看到打印的值_Sphinx - Fatal编程技术网

Sphinx 当我使用gdb编译器进行调试时,无法在控制台窗口中看到打印的值

Sphinx 当我使用gdb编译器进行调试时,无法在控制台窗口中看到打印的值,sphinx,Sphinx,我已经下载了sphinx-2.2.5发行版,安装成功 步骤:: ./configure-prefix=/home/syscon/Documents/work/sphinx-2.2.5-release-带调试 sudo使干净 sudo-make sudo制作安装 mysql-u root-p**tests-e从tests.documents中选择* mysql-u root-p**tests

我已经下载了sphinx-2.2.5发行版,安装成功

步骤::

./configure-prefix=/home/syscon/Documents/work/sphinx-2.2.5-release-带调试

sudo使干净

sudo-make

sudo制作安装

mysql-u root-p**tests-e从tests.documents中选择*

mysql-u root-p**tests sudo./src/索引器-全部

要在控制台中调试searchd

sudo gdb-tui-args./src/searchd-console

完成此步骤后,它将进入控制台窗口

中断发送搜索响应

我试着在函数内部打印语句,在调试时,它跨越了这一点 printf语句,但它不会在控制台窗口中打印任何内容

为了在控制台窗口中打印语句,我需要做什么


我需要在sphinx.conf中启用任何东西吗?

为什么还要启用另一个配置文件?Tat配置文件被阻止了嗯
void SendSearchResponse ( SearchHandler_c & tHandler, InputBuffer_c & tReq, int iSock,
int iVer, int iMasterVer )
{
                ....
                ....
                // serve the response
                NetOutputBuffer_c tOut ( iSock );

                int iReplyLen = 0;
                bool bAgentMode = ( iMasterVer>0 );

                cout<< "Length" << endl;
                cout << iReplyLen << endl;
}