diff options
author | Hans Bolinder <[email protected]> | 2017-03-31 16:38:15 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2017-04-03 14:35:11 +0200 |
commit | 20ba9ab511e645098ea278d2c96638e225a5013e (patch) | |
tree | 9955bd1d8cab41498afb5b9a8718443d7aabe3f8 /lib/debugger | |
parent | 97c3397831811fbde6fd60678e7056ee580210e3 (diff) | |
download | otp-20ba9ab511e645098ea278d2c96638e225a5013e.tar.gz otp-20ba9ab511e645098ea278d2c96638e225a5013e.tar.bz2 otp-20ba9ab511e645098ea278d2c96638e225a5013e.zip |
debugger: Enable editing of bit strings in the bindings area
The evaluated string looked like "V=<<1>>", which cannot be scanned
correctly. A space after "=" fixes the bug.
Diffstat (limited to 'lib/debugger')
-rw-r--r-- | lib/debugger/src/dbg_wx_trace.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/debugger/src/dbg_wx_trace.erl b/lib/debugger/src/dbg_wx_trace.erl index 29c8e8cefb..f4ee30618c 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-2016. All Rights Reserved. +%% Copyright Ericsson AB 2008-2017. All Rights Reserved. %% %% Licensed under the Apache License, Version 2.0 (the "License"); %% you may not use this file except in compliance with the License. @@ -524,7 +524,8 @@ gui_cmd({edit, {Var, Value}}, State) -> cancel -> State; {Var, Term} -> - Cmd = atom_to_list(Var)++"="++io_lib:format("~w", [Term]), + %% The space after "=" is needed for handling "B= <<1>>". + Cmd = atom_to_list(Var)++"= "++io_lib:format("~w", [Term]), gui_cmd({user_command, lists:flatten(Cmd)}, State) end. |