INNER CODE UNIT · Python
is_debugpy_installed
nils-soderman/vscode-unreal-python · site-packages/vscode_unreal/debug.py:11
def is_debugpy_installed() -> bool:
"""
Tries to import debugpy to check if it is installed.
"""
try:
import debugpy
return True
except ModuleNotFoundError:
return False
def install_debugpy() -> bool:
"""
Installs debugpy using the current Unreal Python interpreter.
"""
import subprocess
python_exe = unreal.get_interpreter_executable_path()