qDebug()打印调用方法

时间:2015-12-15 14:53:45

标签: qt

我有以下方法用于调试目的:

@RestController
public class ChunkedTransferAPI {

    @Autowired
    ServletContext servletContext;

    @RequestMapping(value = "bootfile.efi", method = { RequestMethod.GET, RequestMethod.HEAD })
    public void doHttpBoot(HttpServletResponse response) {

        String filename = "/realbootfile.efi";
        try {
            ServletOutputStream output = response.getOutputStream();

            InputStream input = servletContext.getResourceAsStream(filename);
            BufferedInputStream bufferedInput = new BufferedInputStream(input);
            int datum = bufferedInput.read();
            while (datum != -1) {
                output.write(datum);
                datum = bufferedInput.read();
                response.flushBuffer(); // <======= HERE
            }
            //output.flush();
            output.close();

        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}

它遍历某些数据结构并打印其mebmers值,这一切都可以。但是,是否可以使用 void UeLoggedUsersInfo::uePrintLoggedUsers() { qDebug() << "\n" << Q_FUNC_INFO << ":\n"; for(int index=0; index<this->ueLoggedUsersData()->size(); index++) { qDebug() << this->ueLoggedUsersData()->at(index).constBegin().key().first << this->ueLoggedUsersData()->at(index).constBegin().key().second << this->ueLoggedUsersData()->at(index).constBegin().value(); } // for qDebug() << "\nEND\n"; } // uePrintLoggedUsers 框架(不包括其他框架)在此方法中打印哪个方法称之为,如果是,如何?< / p>

0 个答案:

没有答案