aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger/src/dbg_wx_trace_win.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2009-12-16 14:34:03 +0100
committerBjörn Gustavsson <[email protected]>2009-12-18 16:30:07 +0100
commit87f6e4c3bcddc166d2109e72ae8add6adfca26cc (patch)
treec9ebcfdcaa56c6e32ab6289f7c6a04d0e13b3c93 /lib/debugger/src/dbg_wx_trace_win.erl
parente27e41b63225b1be5ce2f338d219a39429079fec (diff)
downloadotp-87f6e4c3bcddc166d2109e72ae8add6adfca26cc.tar.gz
otp-87f6e4c3bcddc166d2109e72ae8add6adfca26cc.tar.bz2
otp-87f6e4c3bcddc166d2109e72ae8add6adfca26cc.zip
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.
Diffstat (limited to 'lib/debugger/src/dbg_wx_trace_win.erl')
-rwxr-xr-xlib/debugger/src/dbg_wx_trace_win.erl2
1 files changed, 1 insertions, 1 deletions
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),