From 98c50afe8e97519b5cd040509a48c1aa38132a21 Mon Sep 17 00:00:00 2001 From: Nikhil Mohite <69510038+nikhil-mohite@users.noreply.github.com> Date: Fri, 23 Sep 2022 11:11:23 +0530 Subject: [PATCH] Ensure that the continue/start button should be disabled if the user stops the Debugger for the procedures. #5188 (#5353) --- docs/en_US/release_notes_6_15.rst | 1 + .../debugger/static/js/components/DebuggerComponent.jsx | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/en_US/release_notes_6_15.rst b/docs/en_US/release_notes_6_15.rst index 6c8dcd449..1d9fde207 100644 --- a/docs/en_US/release_notes_6_15.rst +++ b/docs/en_US/release_notes_6_15.rst @@ -28,3 +28,4 @@ Bug fixes | `Issue #5249 `_ - Added the ability to display the selected text from the query tool in the find/replace box. | `Issue #5262 `_ - Ensure that the user management dialog should not allow the same email addresses with different letter casings when creating users. | `Issue #5308 `_ - Ensure that the default value for a column should be used if it is made empty. + | `Issue #5188 `_ - Ensure that the continue/start button should be disabled if the user stops the Debugger for the procedures. diff --git a/web/pgadmin/tools/debugger/static/js/components/DebuggerComponent.jsx b/web/pgadmin/tools/debugger/static/js/components/DebuggerComponent.jsx index c01774c4e..f7b9a0054 100644 --- a/web/pgadmin/tools/debugger/static/js/components/DebuggerComponent.jsx +++ b/web/pgadmin/tools/debugger/static/js/components/DebuggerComponent.jsx @@ -514,8 +514,11 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev }) .then(function (res) { if (res.data.data.status) { - // Call function to create and update local variables .... + // Remove active time in the editor setActiveLine(-1); + // Clear timeout on stop debugger. + clearTimeout(timeOut); + params.directDebugger.direct_execution_completed = true; params.directDebugger.is_user_aborted_debugging = true;