Skip to content

Debugger fails to attach to processes running as another user when running elevated on Windows #1660

@gregg-miskelly

Description

@gregg-miskelly

Environment data

C# Extension version: 1.11
OS: Windows

Steps to reproduce

  1. Create a console app with an infinite loop
  2. Open a 'Network service' command prompt with -- psexec -i -u "nt authority\network service" cmd.exe
  3. In this command prompt, start the app (ex: dotnet bin\Debug\netcoreapp2.0\CsInfiniteLoop.dll)
  4. Start Visual Studio Code as an Administrator
  5. Open up the project, and generate a launch.json if not already done
  6. Switch to the 'Attach' configuration
  7. Try to attach to the dotnet process

Expected behavior

Attach should succeed

Actual behavior

image

Access is denied.

Metadata

Metadata

Labels

DebuggerfixedFixed and available in the stable version of C# Extension.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions