1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

Add the vdbe_listing and sql_trace pragmas used for debugging. (CVS 1558)

FossilOrigin-Name: 28c3cc088018833f507535b8d227232776cff204
This commit is contained in:
drh
2004-06-10 01:30:59 +00:00
parent a60accbdb2
commit 35d4c2f4b8
8 changed files with 45 additions and 21 deletions

View File

@@ -654,7 +654,9 @@ void sqlite3VdbeMakeReady(
sqlite3HashInit(&p->agg.hash, SQLITE_HASH_BINARY, 0);
p->agg.pSearch = 0;
#ifdef SQLITE_DEBUG
if( sqlite3OsFileExists("vdbe_explain") ){
if( (p->db->flags & SQLITE_VdbeListing)!=0
|| sqlite3OsFileExists("vdbe_explain")
){
int i;
printf("VDBE Program Listing:\n");
for(i=0; i<p->nOp; i++){