DebugClientBase: corrected the code running unit tests within the debugger to be able to access variables from within the shell pane.

Sat, 30 Jan 2021 12:05:36 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 30 Jan 2021 12:05:36 +0100
changeset 8030
b356d92d4e02
parent 8029
5feb4f723f07
child 8032
76375aa6bc04

DebugClientBase: corrected the code running unit tests within the debugger to be able to access variables from within the shell pane.

eric6/DebugClients/Python/DebugClientBase.py file | annotate | diff | comparison | revisions
--- a/eric6/DebugClients/Python/DebugClientBase.py	Sat Jan 30 11:20:55 2021 +0100
+++ b/eric6/DebugClients/Python/DebugClientBase.py	Sat Jan 30 12:05:36 2021 +0100
@@ -917,9 +917,13 @@
                 self.threads.clear()
                 self.attachThread(mainThread=True)
                 sys.setprofile(None)
+                self.running = sys.argv[0]
                 self.mainThread.run(
                     "result = self.test.run(self.testResult)\n",
-                    localsDict=locals_, closeSession=False)
+                    self.debugMod.__dict__,
+                    localsDict=locals_,
+                    debug=True,
+                    closeSession=False)
                 result = locals_["result"]
             else:
                 result = self.test.run(self.testResult)

eric ide

mercurial