From b87a58458933904db43e38d1c66f411a249aae2d Mon Sep 17 00:00:00 2001 From: Daniel Compton Date: Mon, 29 Jan 2018 00:03:39 +1300 Subject: [PATCH] Change clicking on a trace to print entire trace to console This is useful for debugging with more information about the trace. --- CHANGELOG.md | 1 + src/day8/re_frame/trace/view/traces.cljs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 69408eb..059f15f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file. This change * The version of Garden that re-frame-trace uses is now bundled as a source dependency so you should no longer get conflicts if you use Garden 2. * Refactored re-frame-trace trace parsing internals to incrementally parse new traces. +* Clicking on a trace's expanded information now prints the entire trace to the console instead of just the tags. ### Fixed diff --git a/src/day8/re_frame/trace/view/traces.cljs b/src/day8/re_frame/trace/view/traces.cljs index 14fe6f4..7221a90 100644 --- a/src/day8/re_frame/trace/view/traces.cljs +++ b/src/day8/re_frame/trace/view/traces.cljs @@ -71,7 +71,7 @@ :tab-index 0} [:td] [:td.trace--details-tags {:col-span 2 - :on-click #(.log js/console tags)} + :on-click #(.log js/console trace)} [:div.trace--details-tags-text (let [tag-str (prn-str tags)] (str (subs tag-str 0 400)