You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Launch the project in Command Prompt(cmd window) using the Command 'dotnet run'.
Open the attachment project with VSCode. hwapp.zip
Set a bp at line of 12 in Program.cs.
Select the debug type '.Net core Attach'
Press F5 to start debugging
Expected behavior
Pop up the UI that we can select the process to start attach.
like the picture:
Actual behavior
The UI window didn't display, and pop up an error message.
Investigation:
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.
The text was updated successfully, but these errors were encountered:
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
@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?
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
hwapp.zip
Expected behavior
Pop up the UI that we can select the process to start attach.
like the picture:
Actual behavior
The UI window didn't display, and pop up an error message.
Investigation:
"processId": "4312"
press F5 again, and the bp can be hit. Attach can work correctly.
The text was updated successfully, but these errors were encountered: