Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
gregg-miskelly opened this issue Jul 24, 2017 · 2 comments
Assignees
Milestone

Comments

@gregg-miskelly
Copy link
Contributor

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.

@gregg-miskelly
Copy link
Contributor Author

This was fixed in #1662

@gregg-miskelly
Copy link
Contributor Author

@kroppt: Forgot to send you the link earlier, but this fix should be in 1.12.0-beta4. See instructions to install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant