From b9268fbdcd70c0f37bb6b42f84a5040fc0d33479 Mon Sep 17 00:00:00 2001 From: historic_bruno Date: Mon, 7 Oct 2013 02:10:41 +0000 Subject: [PATCH] Fixes error logging in the JS debugger, based on patch by RefinedCode. Fixes #2175 This was SVN commit r13967. --- source/tools/jsdebugger/js/src/debugger.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/tools/jsdebugger/js/src/debugger.js b/source/tools/jsdebugger/js/src/debugger.js index d14f515f15..9bfabe32be 100644 --- a/source/tools/jsdebugger/js/src/debugger.js +++ b/source/tools/jsdebugger/js/src/debugger.js @@ -201,8 +201,8 @@ function getCurrentGlobalObject (threadId) }, error: function(jqXHR, textStatus, errorThrown) { - DEBUG(textStatus); - DEBUG('error'); + debug('ERROR : getCurrentGlobalObject: ' + errorThrown); + alert('getCurrentGlobalObject failed:\n' + errorThrown); } }); } @@ -219,8 +219,8 @@ function getStackFrame (threadId, nestingLevel) }, error: function(jqXHR, textStatus, errorThrown) { - DEBUG(textStatus); - DEBUG('error'); + debug('ERROR : getStackFrame: ' + errorThrown); + alert('getStackFrame failed:\n' + errorThrown); } }); } @@ -237,8 +237,8 @@ function getStackFrameThis (threadId, nestingLevel) }, error: function(jqXHR, textStatus, errorThrown) { - DEBUG(textStatus); - DEBUG('error'); + debug('ERROR : getStackFrameThis: ' + errorThrown); + alert('getStackFrameThis failed:\n' + errorThrown); } }); }