--- a/DebugClients/Python/ThreadExtension.py Wed Mar 22 18:45:15 2017 +0100 +++ b/DebugClients/Python/ThreadExtension.py Wed Mar 22 18:50:20 2017 +0100 @@ -64,7 +64,7 @@ sys.meta_path.insert(0, self) - def attachThread(self, target=None, args=None, kwargs={}, + def attachThread(self, target=None, args=None, kwargs=None, mainThread=False): """ Public method to setup a standard thread for DebugClient to debug. @@ -80,6 +80,9 @@ started mainthread of the app @return identifier of the created thread """ + if kwargs is None: + kwargs = {} + if mainThread: ident = _thread.get_ident() name = 'MainThread'