From 87f6e4c3bcddc166d2109e72ae8add6adfca26cc Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Wed, 16 Dec 2009 14:34:03 +0100 Subject: Dbg: Cut variable bindings after 80 chars. This is an optimization to avoid sending huge terms to the gui just to step by them and update variables again. Even better would be to only update if necessary. --- lib/debugger/src/dbg_wx_trace_win.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/debugger/src') diff --git a/lib/debugger/src/dbg_wx_trace_win.erl b/lib/debugger/src/dbg_wx_trace_win.erl index 6e7a291493..4f7f9baf80 100755 --- a/lib/debugger/src/dbg_wx_trace_win.erl +++ b/lib/debugger/src/dbg_wx_trace_win.erl @@ -571,7 +571,7 @@ update_bindings(#winInfo{bind=#sub{out=BA}}, Bs) -> wx:foldl(fun({Var,Val},Row) -> wxListCtrl:insertItem(BA, Row, ""), wxListCtrl:setItem(BA, Row, 0, dbg_wx_win:to_string(Var)), - wxListCtrl:setItem(BA, Row, 1, dbg_wx_win:to_string("~200p",[Val])), + wxListCtrl:setItem(BA, Row, 1, dbg_wx_win:to_string("~500P",[Val, 80])), Row+1 end, 0, Bs), put(bindings,Bs), -- cgit v1.2.3