import re


def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("\\vsjitdebugger.exe"),
            not any(
                [
                    re.match(
                        r"^.*\\vsimmersiveactivatehelper.*.exe$",
                        event.deep_get("Image", default=""),
                    ),
                    event.deep_get("Image", default="").endswith("\\devenv.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
