Sat, 30 Jan 2021 12:05:36 +0100
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)