GeezerVison is showing github.com — fix #543 · meldoessystemdesign/pythonVSCode@ee9f358
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: pythonFiles/PythonTools/visualstudio_py_testlauncher.py +4-3Lines changed: 4 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -213,6 +213,10 @@ def main(): |
213 | 213 | parser.add_option('--uf', '--failfast', type='str', help='Stop on first failure') |
214 | 214 | parser.add_option('--uc', '--catch', type='str', help='Catch control-C and display results') |
215 | 215 | (opts, _) = parser.parse_args() |
| 216 | + |
| 217 | + if opts.secret and opts.port: |
| 218 | + from ptvsd.visualstudio_py_debugger import DONT_DEBUG, DEBUG_ENTRYPOINTS, get_code |
| 219 | + from ptvsd.attach_server import DEFAULT_PORT, enable_attach, wait_for_attach |
216 | 220 |
|
217 | 221 | sys.path[0] = os.getcwd() |
218 | 222 | if opts.result_port: |
@@ -228,9 +232,6 @@ def main(): |
228 | 232 | sys.stderr = _TestOutput(sys.stderr, is_stdout = False) |
229 | 233 |
|
230 | 234 | if opts.secret and opts.port: |
231 | | - from ptvsd.visualstudio_py_debugger import DONT_DEBUG, DEBUG_ENTRYPOINTS, get_code |
232 | | - from ptvsd.attach_server import DEFAULT_PORT, enable_attach, wait_for_attach |
233 | | - |
234 | 235 | DONT_DEBUG.append(os.path.normcase(__file__)) |
235 | 236 | DEBUG_ENTRYPOINTS.add(get_code(main)) |
236 | 237 |
|
|