Just realized that the second snapshot is too small...
import sys
import os
#os.path.expanduser("~") expands to the User's documents folder when used inside Maya, but expands to the user's root folder when run in a CPython installation.
sys.path.append(os.path.abspath(fr'{os.path.expanduser("~")}\..\.vscode\extensions\ms-python.python-2022.20.2\pythonFiles\lib\python'))
import debugpy
#overwrite the default python executabledebugpy.breakpoint()
maya_location = os.path.join(os.environ.get("MAYA_LOCATION"), "bin", "mayapy.exe")
debugpy.configure({'python': maya_location})
# 5678 is the default attach port in the VS Code debug configurations. Unless a host and port are specified, host defaults to 127.0.0.1
debugpy.listen(5678)
print("Waiting for debugger attach")
debugpy.wait_for_client()
print('break on this line')