allow breakpoints in graphic callbacks bis 32/21632/1
Cedric Delamarre [Wed, 2 Dec 2020 15:26:26 +0000 (16:26 +0100)]
Change-Id: I943fbf644dc83a97122e75d436a56afb6a2178a1

scilab/modules/action_binding/src/c/InterpreterManagement.c

index b0b05d5..8c18f73 100644 (file)
@@ -42,7 +42,19 @@ int putCommandInScilabQueue(char *command)
 */
 int requestScilabExec(char *command)
 {
-    return StorePrioritaryCommand(command);
+    if(isEnableDebug())
+    {
+        if(isDebugInterrupted())
+        {
+            return 1;
+        }
+
+        return debuggerManagerExecute(command);
+    }
+    else
+    {
+        return StorePrioritaryCommand(command);
+    }
 }
 /*--------------------------------------------------------------------------*/
 int interruptScilab(void)