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

+4
View File
@@ -475,6 +475,10 @@ int main(int argc, char* argv[]) {
options |= DUMP_DISASM;
continue;
}
if (isoption(argv[i], 0, "debug-trace=all", &short_opts)) {
jq_flags |= JQ_DEBUG_TRACE_ALL;
if (!short_opts) continue;
}
if (isoption(argv[i], 0, "debug-trace", &short_opts)) {
jq_flags |= JQ_DEBUG_TRACE;
continue;