Differences From:
File
src/main.c
part of check-in
[a1f727be9d]
- Add the "version" command to print out the source-code version number for the
fossil executable.
by
drh on
2008-10-18 20:29:33.
[view]
To:
File
src/main.c
part of check-in
[f55c6a1b62]
- Begin adding a TH1 script trace mechanism actived by the --th_trace option
on the "server" and "ui" commands. The implementation is incomplete, but
the plane is landing....
by
drh on
2008-10-24 18:23:23.
[view]
@@ -125,8 +125,10 @@
char zCsrfToken[12]; /* Value of the anti-CSRF token */
int okCsrf; /* Anti-CSRF token is present and valid */
FILE *fDebug; /* Write debug information here, if the file exists */
+ int thTrace; /* True to enable TH1 debugging output */
+ Blob thLog; /* Text of the TH1 debugging output */
/* Storage for the aux() and/or option() SQL function arguments */
int nAux; /* Number of distinct aux() or option() values */
const char *azAuxName[MX_AUX]; /* Name of each aux() or option() value */
@@ -707,8 +709,12 @@
const char *zPort;
char *zBrowser;
char *zBrowserCmd = 0;
+ g.thTrace = find_option("th_trace", 0, 0)!=0;
+ if( g.thTrace ){
+ blob_zero(&g.thLog);
+ }
zPort = find_option("port", "P", 1);
if( zPort ){
iPort = atoi(zPort);
}else{