aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugger/src/dbg_wx_trace.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2015-08-14 08:16:13 +0200
committerDan Gudmundsson <[email protected]>2015-08-14 08:16:13 +0200
commitb17eeb8319af3b3a994ccd3fcf1170ae49291e2c (patch)
tree38e8bd3ef3e4bcf29e29d678605e3827f84ee75e /lib/debugger/src/dbg_wx_trace.erl
parent155c22ff3ce3f667d4a984bd6648f029e0998381 (diff)
downloadotp-b17eeb8319af3b3a994ccd3fcf1170ae49291e2c.tar.gz
otp-b17eeb8319af3b3a994ccd3fcf1170ae49291e2c.tar.bz2
otp-b17eeb8319af3b3a994ccd3fcf1170ae49291e2c.zip
debugger: Fix broken debugger:quick/3 start
Too much code was removed in commit 560f73141af
Diffstat (limited to 'lib/debugger/src/dbg_wx_trace.erl')
-rw-r--r--lib/debugger/src/dbg_wx_trace.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/debugger/src/dbg_wx_trace.erl b/lib/debugger/src/dbg_wx_trace.erl
index 4438466bb0..879887879a 100644
--- a/lib/debugger/src/dbg_wx_trace.erl
+++ b/lib/debugger/src/dbg_wx_trace.erl
@@ -72,6 +72,10 @@ start(Pid, TraceWin, BackTrace) ->
start(Pid, TraceWin, BackTrace, Strings) ->
case whereis(dbg_wx_mon) of
+ undefined ->
+ Parent = wx:new(),
+ Env = wx:get_env(),
+ start(Pid, Env, Parent, TraceWin, BackTrace, Strings);
Monitor when is_pid(Monitor) ->
Monitor ! {?MODULE, self(), get_env},
receive