Debugging Issues

I’m only able to debug a script below the include lines in a workspace if the variable tab isn’t open. As soon as I open the variable tab, the debug will terminate. This is an error message I received on the console after attempting to debug the list logical components sample script:
py4j.Py4JException: An exception was raised by the Python Proxy. Return Message: Traceback (most recent call last):
File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\py4j-python_0.10.9.3-bnd-2odeag\src\py4j\clientserver.py”, line 581, in _call_proxy

  • return_value = getattr(self.pool[obj_id], method)(params)
  • File “<…>”, line 424, in run*
  • File “C:\Users\fhewson\Documents\Python37\Python37\lib\bdb.py”, line 578, in run*
  • exec(cmd, globals, locals)*
  • File “__ref_L/Python4Capella/sample_scripts/list_logical_components.py_ufqosnensf”, line 33, in *
  • import main*
  • File “__ref_L/Python4Capella/sample_scripts/list_logical_components.py_ufqosnensf”, line 33, in *
  • import main*
  • File “<…>”, line 231, in trace_dispatch*
  • File “C:\Users\fhewson\Documents\Python37\Python37\lib\bdb.py”, line 88, in trace_dispatch*
  • return self.dispatch_line(frame)*
  • File “C:\Users\fhewson\Documents\Python37\Python37\lib\bdb.py”, line 112, in dispatch_line*
  • self.user_line(frame)*
  • File “<…>”, line 241, in user_line*
  • File “<…>”, line 296, in dispatch*
  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\py4j-python_0.10.9.3-bnd-2odeag\src\py4j\java_gateway.py”, line 1322, in call*
  • answer, self.gateway_client, self.target_id, self.name)*
  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\py4j-python_0.10.9.3-bnd-2odeag\src\py4j\protocol.py”, line 328, in get_return_value*
  • format(target_id, “.”, name), value)*
    py4j.protocol.Py4JJavaError: An error occurred while calling o0.traceDispatch.
    : py4j.Py4JException: An exception was raised by the Python Proxy. Return Message: Traceback (most recent call last):
  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\org.eclipse.ease.lang.python.py4j_0.8.0.I202104091518\pysrc\ease_py4j_main.py”, line 132, in convert_value*
  • return converter.convert(value, gw)*
  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\py4j-python_0.10.9.3-bnd-2odeag\src\py4j\java_collections.py”, line 511, in convert*
  • java_list.add(element)*
  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\py4j-python_0.10.9.3-bnd-2odeag\src\py4j\java_gateway.py”, line 1313, in call*
  • args_command, temp_args = self._build_args(args)
  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\py4j-python_0.10.9.3-bnd-2odeag\src\py4j\java_gateway.py”, line 1283, in _build_args*
  • [get_command_part(arg, self.pool) for arg in new_args])*
  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\py4j-python_0.10.9.3-bnd-2odeag\src\py4j\java_gateway.py”, line 1283, in *
  • [get_command_part(arg, self.pool) for arg in new_args])*
  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\py4j-python_0.10.9.3-bnd-2odeag\src\py4j\protocol.py”, line 298, in get_command_part*
  • command_part = REFERENCE_TYPE + parameter._get_object_id()*
    AttributeError: type object ‘int’ has no attribute ‘_get_object_id’

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\py4j-python_0.10.9.3-bnd-2odeag\src\py4j\clientserver.py”, line 581, in _call_proxy*

  • return_value = getattr(self.pool[obj_id], method)(params)

  • File “<…>”, line 122, in getVariables*

  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\org.eclipse.ease.lang.python.py4j_0.8.0.I202104091518\pysrc\ease_py4j_main.py”, line 117, in convert_value*

  • for k, v in value.items()*

  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\org.eclipse.ease.lang.python.py4j_0.8.0.I202104091518\pysrc\ease_py4j_main.py”, line 117, in *

  • for k, v in value.items()*

  • File “C:\Users\fhewson\Documents\Capella 1.4.2\Capella 1.4.2\eclipse\plugins\org.eclipse.ease.lang.python.py4j_0.8.0.I202104091518\pysrc\ease_py4j_main.py”, line 133, in convert_value*

  • except Exception:*
    TypeError: catching classes that do not inherit from BaseException is not allowed

  • at py4j.Protocol.getReturnValue(Protocol.java:476)*

  • at py4j.reflection.PythonProxyHandler.invoke(PythonProxyHandler.java:108)*

  • at com.sun.proxy.$Proxy33.getVariables(Unknown Source)*

  • at org.eclipse.ease.lang.python.debugger.PythonDebugger$PythonDebugFrame.getVariables(PythonDebugger.java:83)*

  • at org.eclipse.ease.lang.python.py4j.internal.Py4jDebuggerEngine.getVariables(Py4jDebuggerEngine.java:123)*

  • at org.eclipse.ease.debugging.AbstractEaseDebugger.handleEventsInSuspendedState(AbstractEaseDebugger.java:300)*

  • at org.eclipse.ease.debugging.AbstractEaseDebugger.suspend(AbstractEaseDebugger.java:255)*

  • at org.eclipse.ease.lang.python.py4j.internal.Py4jDebugger.suspend(Py4jDebugger.java:87)*

  • at org.eclipse.ease.debugging.AbstractEaseDebugger.processLine(AbstractEaseDebugger.java:490)*

  • at org.eclipse.ease.lang.python.debugger.PythonDebugger.traceDispatch(PythonDebugger.java:177)*

  • at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)*

  • at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)*

  • at java.lang.reflect.Method.invoke(Method.java:483)*

  • at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)*

  • at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)*

  • at py4j.Gateway.invoke(Gateway.java:282)*

  • at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)*

  • at py4j.commands.CallCommand.execute(CallCommand.java:79)*

  • at py4j.ClientServerConnection.sendCommand(ClientServerConnection.java:244)*

  • at py4j.CallbackClient.sendCommand(CallbackClient.java:384)*

  • at py4j.CallbackClient.sendCommand(CallbackClient.java:356)*

  • at py4j.reflection.PythonProxyHandler.invoke(PythonProxyHandler.java:106)*

  • at com.sun.proxy.$Proxy32.run(Unknown Source)*

  • at org.eclipse.ease.lang.python.py4j.internal.Py4jDebugger.execute(Py4jDebugger.java:106)*

  • at org.eclipse.ease.lang.python.py4j.internal.Py4jDebuggerEngine.internalExecute(Py4jDebuggerEngine.java:85)*

  • at org.eclipse.ease.lang.python.py4j.internal.Py4jScriptEngine.execute(Py4jScriptEngine.java:227)*

  • at org.eclipse.ease.AbstractScriptEngine.inject(AbstractScriptEngine.java:189)*

  • at org.eclipse.ease.AbstractScriptEngine.run(AbstractScriptEngine.java:242)*

  • at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)*

  • at py4j.Protocol.getReturnValue(Protocol.java:476)*

  • at py4j.reflection.PythonProxyHandler.invoke(PythonProxyHandler.java:108)*

  • at com.sun.proxy.$Proxy32.run(Unknown Source)*

  • at org.eclipse.ease.lang.python.py4j.internal.Py4jDebugger.execute(Py4jDebugger.java:106)*

  • at org.eclipse.ease.lang.python.py4j.internal.Py4jDebuggerEngine.internalExecute(Py4jDebuggerEngine.java:85)*

  • at org.eclipse.ease.lang.python.py4j.internal.Py4jScriptEngine.execute(Py4jScriptEngine.java:227)*

  • at org.eclipse.ease.AbstractScriptEngine.inject(AbstractScriptEngine.java:189)*

  • at org.eclipse.ease.AbstractScriptEngine.run(AbstractScriptEngine.java:242)*

  • at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)*

We have experienced the same issue on our side, For the moment I don’t know what is causing this issue. You can experiment by changing the debug engine used by EASE to debug the Python code, but I’m not sure it will help. If you fine a solution to this issue let us know.

For the second stack you can have a look at the following issue: