Fixed an issue where Debugger is not getting started if arguments loaded from SQLite database. Fixes #6132

This commit is contained in:
Nikhil Mohite 2022-06-22 11:16:50 +05:30 committed by Akshay Joshi
parent e8f0454b39
commit 41ceda01d0
2 changed files with 181 additions and 169 deletions

View File

@ -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)

View File

@ -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)
);
}
}