Fix Debugger restart issue.

This commit is contained in:
Khushboo Vashi authored and GitHub committed 2023-03-24 14:33:07 +05:30
1 parent 70b2ead852
commit 5cb64f7602
2 files changed
+5 -21

No files matched your search

@@ -790,10 +790,6 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
method: 'POST',
data: JSON.stringify(argsValueList),
})
.then(function () {
/* Close the debugger modal dialog */
props.closeModal();
})
.catch(function (error) {
props.closeModal();
Notify.alert(
@@ -816,6 +812,7 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
})
.then(function () {
/*This is intentional (SonarQube)*/
props.closeModal();
})
.catch(function (error) {
setLoaderText('');
@@ -353,12 +353,6 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
url: baseUrl,
method: 'POST',
})
.then(function (res) {
if (res.data.data.status) {
enableToolbarButtons();
pollResult(params.transId);
}
})
.catch(raiseJSONError);
enableToolbarButtons();
pollResult(params.transId);
@@ -372,11 +366,6 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
url: baseUrl,
method: 'POST',
})
.then(function (res) {
if (res.data.data.status) {
messages(params.transId);
}
})
.catch(raiseJSONError);
messages(params.transId);
}
@@ -637,12 +626,10 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
url: base_url,
method: 'POST',
})
.then(function () {
if (params.directDebugger.debug_type) {
pollEndExecutionResult(params.transId);
}
})
.catch(raisePollingError);
if (params.directDebugger.debug_type) {
pollEndExecutionResult(params.transId);
}
}
const pollEndExecuteError = (res) => {
@@ -742,7 +729,7 @@ export default function DebuggerComponent({ pgAdmin, selectedNodeInfo, panel, ev
/*
"result" is undefined only in case of EDB procedure.
As Once the EDB procedure execution is completed then we are
not getting any result so we need ignore the result.
not getting any result so we need to ignore the result.
*/
setActiveLine(-1);
params.directDebugger.direct_execution_completed = true;