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:Command failed: wmic process get Name,ProcessId,CommandLine /FORMAT:list #897

Closed
ClaireKang opened this issue Nov 9, 2016 · 4 comments
Labels

Comments

@ClaireKang
Copy link

ClaireKang commented Nov 9, 2016

Environment data

dotnet --info output:
VS Code version: 1.7.1
C# Extension version: v.1.5.0-beta7
.NET Core version: 1.0.0-SDK Preview4
OS: Win7x64

Steps to reproduce

  1. Launch the project in Command Prompt(cmd window) using the Command 'dotnet run'.
  2. Open the attachment project with VSCode.
    hwapp.zip
  3. Set a bp at line of 12 in Program.cs.
  4. Select the debug type '.Net core Attach'
    attach
  5. Press F5 to start debugging

Expected behavior

Pop up the UI that we can select the process to start attach.
like the picture:
ffe42633

Actual behavior

The UI window didn't display, and pop up an error message.
ui

Investigation:

  1. I tried to change attch configurations in launch.json file
    "processId": "4312"
    press F5 again, and the bp can be hit. Attach can work correctly.
@ClaireKang ClaireKang changed the title [Debug]Command failed: wmic process get Name,ProcessId,CommandLine /FORMAT:list Debugger:Command failed: wmic process get Name,ProcessId,CommandLine /FORMAT:list Nov 9, 2016
@gregg-miskelly
Copy link
Contributor

I think the issue here is that the process listing code is broken on Win7.

@rajkumar42
Copy link
Contributor

@ClaireKang I did a quick test on Windows 7 with the following and attach seems to work fine.
VSCode: v1.7.1
dotnet cli: 1.0.0-preview2-003133
OS: Win7x64
C# Extension version: v.1.5.0-beta7

Perhaps it is a unintended consequence of using ".NET Core version: 1.0.0-SDK Preview4", can you try installing Preview2 and try it again?
Would you also mind just running "wmic process get Name,ProcessId,CommandLine /FORMAT:list" on a cmd prompt in your Windows installation?

@ClaireKang
Copy link
Author

I tried do the test with 1.0.0-preview2-003133, Attach can work correctly.

@rajkumar42
Copy link
Contributor

Closing this issue. Lets revisit this when testing preview3 & preview4.

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

No branches or pull requests

3 participants