mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where Debugger is not getting started if arguments loaded from SQLite database. Fixes #6132
This commit is contained in:
parent
e8f0454b39
commit
41ceda01d0
@ -1836,6 +1836,9 @@ def set_arguments_sqlite(sid, did, scid, func_id):
|
||||
|
||||
# handle the Array list sent from the client
|
||||
array_string = ''
|
||||
if 'value' in data[i]:
|
||||
array_string = data[i]['value']
|
||||
|
||||
if 'is_array_value' in data[i] and 'value' in data[i] and data[i][
|
||||
'is_array_value']:
|
||||
array_string = get_array_string(data, i)
|
||||
|
@ -508,6 +508,7 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
|
||||
});
|
||||
|
||||
// Update values if any change in the args.
|
||||
if (debuggerFinalArgs.current) {
|
||||
debuggerFinalArgs.current.changed.forEach(changedArg => {
|
||||
argsList.forEach((el, _index) => {
|
||||
if (changedArg.name == el.name) {
|
||||
@ -515,6 +516,7 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@ -692,6 +694,7 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
|
||||
function startDebugging() {
|
||||
var self = this;
|
||||
setLoaderText('Starting debugger.');
|
||||
try {
|
||||
/* Initialize the target once the debug button is clicked and create asynchronous connection
|
||||
and unique transaction ID If the debugging is started again then treeInfo is already stored. */
|
||||
var [treeInfo, d] = getSelectedNodeData();
|
||||
@ -857,7 +860,13 @@ export default function DebuggerArgumentComponent({ debuggerInfo, restartDebug,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
} catch (err) {
|
||||
setLoaderText('');
|
||||
Notify.alert(
|
||||
gettext('Debugger Error'),
|
||||
gettext(err.message)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user