Skip to content

Attach to process tries to use Wmic on Windows 11 machine without it #13137

Open
@johnfc-soulassembly

Description

Environment

  • OS and version: Windows 11 Pro Version 10.0.26100 Build 26100
  • VS Code: Version 1.96.2
  • C/C++ extension: 1.22.11

Cannot attach to remote executable with debugger, get this : Image

Bug Summary and Steps to Reproduce

Bug Summary:

Steps to reproduce:
1> Add attachment configuration to launch.json
2> Attempt to attach
3> Fail

Debugger Configurations

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(Windows) Attach",
            "type": "cppvsdbg",
            "request": "attach",
            "processId" : "${command:pickProcess}",
            "logging": { "engineLogging": true, "trace": true, "traceResponse": true }
        },
        {
            // Use IntelliSense to find out which attributes exist for C# debugging
            // Use hover for the description of the existing attributes
            // For further information visit https://github.com/dotnet/vscode-csharp/blob/main/debugger-launchjson.md
            "name": ".NET Core Launch (console)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            // If you have changed target frameworks, make sure to update the program path.
            "program": "${workspaceFolder}/Engine/Binaries/DotNET/UnrealBuildTool/UnrealBuildTool.dll",
            "args": [],
            "cwd": "${workspaceFolder}/Engine/Source/Programs/UnrealBuildTool",
            // For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
            "console": "internalConsole",
            "stopAtEntry": false
        },
        {
            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach"
        }
    ]
}

{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "command": "dotnet",
            "type": "process",
            "args": [
                "build",
                "${workspaceFolder}/UE5.sln",
                "/property:GenerateFullPaths=true",
                "/consoleloggerparameters:NoSummary;ForceNoAlign"
            ],
            "problemMatcher": "$msCompile"
        },
        {
            "label": "publish",
            "command": "dotnet",
            "type": "process",
            "args": [
                "publish",
                "${workspaceFolder}/UE5.sln",
                "/property:GenerateFullPaths=true",
                "/consoleloggerparameters:NoSummary;ForceNoAlign"
            ],
            "problemMatcher": "$msCompile"
        },
        {
            "label": "watch",
            "command": "dotnet",
            "type": "process",
            "args": [
                "watch",
                "run",
                "--project",
                "${workspaceFolder}/UE5.sln"
            ],
            "problemMatcher": "$msCompile"
        }
    ]
}

Debugger Logs

intelliSenseEngine is disabled

Other Extensions

ClangD
OculusDebugger
Perforce
C#
Python
Pylance
PythonDebugger
UnrealEnginePython

Additional Information

No response

Metadata

Assignees

Type

Projects

  • Status

    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions