📄 debug.cc
字号:
// Larbin// Sebastien Ailleret// 15-11-99 -> 06-06-00#include <iostream.h>#include "types.h"#ifndef NDEBUGuint statePipe; // where is fetchPipeuint stateNonBlock; // where is fetchNonBlockuint stateBlock; // where are fetchBlockuint sites = 0; // Number of occupied sitesuint debUrl = 0; // How many urls in ramuint debPars = 0; // How many parsers are there#endif // NDEBUG#ifndef NOSTATSuint siteSeen = 0;uint siteDNS = 0; // has a DNS entryuint siteRobots = 0;uint robotsOK = 0;uint hashUrls = 0;uint urls = 0;uint pages = 0;uint interestingPage = 0;uint interestingSeen = 0;uint interestingExtension = 0;uint extensionTreated = 0;uint answers[nbAnswers] = {0,0,0,0,0,0,0,0,0};#endif // NOSTATSvoid myAssert (bool b, char *s) { if (!b) {#ifndef NDEBUG#endif // NDEBUG#ifndef NOSTATS#endif // NOSTATS cerr << s << "\n"; exit(1); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -