INNER CODE UNIT · Python

install_debugpy

nils-soderman/vscode-unreal-python · site-packages/vscode_unreal/debug.py:22

def install_debugpy() -> bool:
    """
    Installs debugpy using the current Unreal Python interpreter.
    """
    import subprocess

    python_exe = unreal.get_interpreter_executable_path()
    if not python_exe:
        return False

    debugpy_install_args = [python_exe, "-m", "pip", "install", "debugpy"]

    env = os.environ.copy()
    env["PYTHONNOUSERSITE"] = "1"

    try:
        result = subprocess.run(debugpy_install_args, capture_output=True, check=True, text=True, env=env)
        unreal.log(result.stdout)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…