aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger/src/dbg_wx_trace.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2013-01-11 11:07:25 +0100
committerDan Gudmundsson <[email protected]>2013-01-11 11:07:25 +0100
commit7f048c5d71534d458351513e84bb879c47f2c76e (patch)
treec3e57c2328d02f01b8ca85dd8c5dff15670c3337 /lib/debugger/src/dbg_wx_trace.erl
parent2ca0bdc7ebcef76be2ec466ed5c517eb955b0d65 (diff)
downloadotp-7f048c5d71534d458351513e84bb879c47f2c76e.tar.gz
otp-7f048c5d71534d458351513e84bb879c47f2c76e.tar.bz2
otp-7f048c5d71534d458351513e84bb879c47f2c76e.zip
debugger: View terms as unicode-strings
Changed the displayed variables to be printed with ~tp to show default all lists and utf-8 binaries as unicode strings. If the user want to see the content without unicode strings he can click on them to see the content as integers, if not it only contains latin1 because ~p converts that. There is currently no way to display it as lists with indentation, so I choose to keep it as it was.
Diffstat (limited to 'lib/debugger/src/dbg_wx_trace.erl')
-rw-r--r--lib/debugger/src/dbg_wx_trace.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/debugger/src/dbg_wx_trace.erl b/lib/debugger/src/dbg_wx_trace.erl
index f61df93aec..0a3cac905f 100644
--- a/lib/debugger/src/dbg_wx_trace.erl
+++ b/lib/debugger/src/dbg_wx_trace.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2008-2012. All Rights Reserved.
+%% Copyright Ericsson AB 2008-2013. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -513,7 +513,7 @@ gui_cmd({edit, {Var, Val}}, State) ->
cancel ->
State;
{Var, Term} ->
- Cmd = atom_to_list(Var)++"="++io_lib:format("~p", [Term]),
+ Cmd = atom_to_list(Var)++"="++io_lib:format("~w", [Term]),
gui_cmd({user_command, lists:flatten(Cmd)}, State)
end.