mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Fix #1721 "runInTerminal" is broken on non-Windows platforms. Fix #1722: Output is not captured in "noDebug" with "runInTerminal" Groundwork for #1713: adapter: multiple concurrent sessions Move "launch" request parsing and debuggee process spawning, PID reporting and tracking, stdio "output" capture, and exit code reporting into launcher. Launcher now communicates to the adapter via a full-fledged message channel. Refactor adapter. Add an abstraction for a debug session, and treat IDE, launcher, and debug server as separate components managed by that session. Improve adapter logging to capture information about current debug session, and current message handler if any. Fix reporting exceptions from message handlers. Various test fixes.
21 lines
598 B
Python
21 lines
598 B
Python
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License. See LICENSE in the project root
|
|
# for license information.
|
|
|
|
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
|
|
import py
|
|
|
|
import ptvsd
|
|
|
|
PTVSD_DIR = py.path.local(ptvsd.__file__) / ".."
|
|
PTVSD_ADAPTER_DIR = PTVSD_DIR / "adapter"
|
|
|
|
# Added to the environment variables of all adapters and servers.
|
|
PTVSD_ENV = {"PYTHONUNBUFFERED": "1"}
|
|
|
|
|
|
# Expose Session directly.
|
|
def Session(*args, **kwargs):
|
|
from tests.debug import session
|
|
return session.Session(*args, **kwargs)
|