diff --git a/docs/en_US/release_notes_3_6.rst b/docs/en_US/release_notes_3_6.rst index 33a5be4c3..4ccd50df0 100644 --- a/docs/en_US/release_notes_3_6.rst +++ b/docs/en_US/release_notes_3_6.rst @@ -18,4 +18,5 @@ Bug fixes | `Bug #3016 `_ - Ensure previous notices are not removed from the Messages tab in the Query Tool if an error occurs during query execution. | `Bug #3029 `_ - Allow the selection order to be preserved in the Select2 control to fix column ordering in data Import/Export. | `Bug #3629 `_ - Allow use of 0 (integer) and empty strings as parameters in the debugger. +| `Bug #3723 `_ - Properly report errors when debugging cannot be started. | `Bug #3746 `_ - Fix dropping of multiple functions/procedures at once. \ No newline at end of file diff --git a/web/pgadmin/tools/debugger/static/js/direct.js b/web/pgadmin/tools/debugger/static/js/direct.js index 217eb85da..7070655d5 100644 --- a/web/pgadmin/tools/debugger/static/js/direct.js +++ b/web/pgadmin/tools/debugger/static/js/direct.js @@ -1565,11 +1565,18 @@ define([ controller.poll_result(trans_id); } }) - .fail(function() { - Alertify.alert( - gettext('Debugger Error'), - gettext('Error while starting debugging listener.') - ); + .fail(function(xhr) { + try { + var err = JSON.parse(xhr.responseText); + if (err.success == 0) { + Alertify.alert(gettext('Debugger Error'), err.errormsg); + } + } catch (e) { + Alertify.alert( + gettext('Debugger Error'), + gettext('Error while starting debugging listener.') + ); + } }); } else if (trans_id != undefined && debug_type) { // Make ajax call to execute the and start the target for execution @@ -1586,11 +1593,18 @@ define([ self.messages(trans_id); } }) - .fail(function() { - Alertify.alert( - gettext('Debugger Error'), - gettext('Error while starting debugging listener.') - ); + .fail(function(xhr) { + try { + var err = JSON.parse(xhr.responseText); + if (err.success == 0) { + Alertify.alert(gettext('Debugger Error'), err.errormsg); + } + } catch (e) { + Alertify.alert( + gettext('Debugger Error'), + gettext('Error while starting debugging listener.') + ); + } }); } else this.intializePanels();