51 Public method to setup a standard thread for DebugClient to debug. |
51 Public method to setup a standard thread for DebugClient to debug. |
52 |
52 |
53 If mainThread is True, then we are attaching to the already |
53 If mainThread is True, then we are attaching to the already |
54 started mainthread of the app and the rest of the args are ignored. |
54 started mainthread of the app and the rest of the args are ignored. |
55 |
55 |
56 @param target the start function of the target thread (i.e. the user |
56 @param target start function of the target thread (i.e. the user |
57 code) |
57 code) |
|
58 @type function |
58 @param args arguments to pass to target |
59 @param args arguments to pass to target |
|
60 @type list of Any |
59 @param kwargs keyword arguments to pass to target |
61 @param kwargs keyword arguments to pass to target |
60 @param mainThread True, if we are attaching to the already |
62 @type dict of Any |
61 started mainthread of the app |
63 @param mainThread True, if we are attaching to the already started |
|
64 mainthread of the app |
|
65 @type bool |
62 @return identifier of the created thread |
66 @return identifier of the created thread |
|
67 @rtype int |
63 """ |
68 """ |
64 if kwargs is None: |
69 if kwargs is None: |
65 kwargs = {} |
70 kwargs = {} |
66 |
71 |
67 if mainThread: |
72 if mainThread: |