diff options
author | Dan Gudmundsson <[email protected]> | 2013-01-11 11:07:25 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2013-01-11 11:07:25 +0100 |
commit | 7f048c5d71534d458351513e84bb879c47f2c76e (patch) | |
tree | c3e57c2328d02f01b8ca85dd8c5dff15670c3337 /lib/debugger/src/dbg_wx_win.erl | |
parent | 2ca0bdc7ebcef76be2ec466ed5c517eb955b0d65 (diff) | |
download | otp-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_win.erl')
-rw-r--r-- | lib/debugger/src/dbg_wx_win.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/debugger/src/dbg_wx_win.erl b/lib/debugger/src/dbg_wx_win.erl index faf3cc178f..3cb6edd953 100644 --- a/lib/debugger/src/dbg_wx_win.erl +++ b/lib/debugger/src/dbg_wx_win.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2010. 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 @@ -252,9 +252,9 @@ notify(Win,Message) -> %%-------------------------------------------------------------------- entry(Parent, Title, Prompt, {Type, Value}) -> - Ted = wxTextEntryDialog:new(Parent, to_string(Prompt), - [{caption, to_string(Title)}, - {value, to_string(Value)}]), + Ted = wxTextEntryDialog:new(Parent, to_string(Prompt), + [{caption, to_string(Title)}, + {value, to_string("~999999tp",Value)}]), case wxDialog:showModal(Ted) of ?wxID_OK -> @@ -306,7 +306,7 @@ to_string([]) -> ""; to_string(List) when is_list(List) -> List; to_string(Term) -> - io_lib:format("~p",[Term]). + io_lib:format("~tp",[Term]). to_string(Format,Args) -> io_lib:format(Format, Args). |