Add --debug-trace=all for detailed debug output

When tracing execution, print the whole stack, not just the items used by the
current opcode
This commit is contained in:
William Langford authored and Nicolas Williams committed 2017-03-26 05:36:22 -05:00
1 parent c8a2a0acc2
commit 94035be3fa
3 files changed
+18 -9

No files matched your search

+5 -1
View File
@@ -4,7 +4,11 @@
#include <stdio.h>
#include "jv.h"
enum {JQ_DEBUG_TRACE = 1};
enum {
JQ_DEBUG_TRACE = 1,
JQ_DEBUG_TRACE_DETAIL = 2,
JQ_DEBUG_TRACE_ALL = JQ_DEBUG_TRACE | JQ_DEBUG_TRACE_DETAIL,
};
typedef struct jq_state jq_state;
typedef void (*jq_msg_cb)(void *, jv);