mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-13 00:21:59 -05:00
Fix debugger issues which could occur if one or more of the ajax calls used to gather execution environment info completed in an unexpected order.
To resolve this, we have callbacks from each ajax call initiate the next one so everything is guaranteed to be sequential. Fixes #1354 Fixes #1323
This commit is contained in:
1 parent
01801e4acb
commit
dd4705af60
1 file changed
+1
-3
@@ -163,7 +163,6 @@ define(
|
||||
}
|
||||
|
||||
// Call function to create and update local variables ....
|
||||
self.GetLocalVariables(trans_id);
|
||||
self.GetStackInformation(trans_id);
|
||||
}
|
||||
else if (res.data.status === 'NotConnected') {
|
||||
@@ -224,6 +223,7 @@ define(
|
||||
if (res.data.status === 'Success') {
|
||||
// Call function to create and update stack information
|
||||
self.AddStackInformation(res.data.result);
|
||||
self.GetLocalVariables(pgTools.DirectDebug.trans_id);
|
||||
}
|
||||
else if (res.data.status === 'NotConnected') {
|
||||
Alertify.alert(
|
||||
@@ -284,7 +284,6 @@ define(
|
||||
|
||||
// Update the stack, local variables and parameters information
|
||||
self.GetStackInformation(trans_id);
|
||||
self.GetLocalVariables(trans_id);
|
||||
|
||||
}
|
||||
else if (!pgTools.DirectDebug.debug_type && !pgTools.DirectDebug.first_time_indirect_debug) {
|
||||
@@ -312,7 +311,6 @@ define(
|
||||
|
||||
// Update the stack, local variables and parameters information
|
||||
self.GetStackInformation(trans_id);
|
||||
self.GetLocalVariables(trans_id);
|
||||
}
|
||||
|
||||
// Enable all the buttons as we got the results
|
||||
|
||||
Reference in new issue
Block a user