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

cannot remote debug C# module via "-H ssh://pi@ipadress" #3347

Open
czgtest opened this issue Oct 15, 2019 · 4 comments
Open

cannot remote debug C# module via "-H ssh://pi@ipadress" #3347

czgtest opened this issue Oct 15, 2019 · 4 comments

Comments

@czgtest
Copy link

czgtest commented Oct 15, 2019

Repro on :
C# extension v1.21.5
VS Code: 1.39.1

please follow the instructions in this blog

breakpoint cannot be hit for C# module when Windows10 remote debug to Raspberry Pi 3
or Windows10 remote debug to ubuntu18.04 machine.

Steps to reproduce : please see toturial

image

Expected behavior

breakpoint can be hit in remote debugging

@JoeRobich
Copy link
Member

@WardenGnaw & @gregg-miskelly

@czgtest
Copy link
Author

czgtest commented Oct 16, 2019

make sure Windows10 machine can access Raspberry Pi without password .

Test on Windows10

  1. install edge extension on VS Code
  2. follow the blogpost to create C# project and Build and run IoT Edge modules on Raspberry Pi
  3. Press F5 to remote debug to Raspberry Pi via "-H ssh://[email protected]"
    check the result :
    Starting: "docker" "-H ssh://[email protected]" exec -i SampleModuleCsharpPi sh -c "~/vsdbg/vsdbg --interpreter=vscode"
    Error from pipe program 'docker': invalid argument " ssh://[email protected]" for "-H, --host" flag: Invalid bind address format: ssh://[email protected]

image

  1. docker -H ssh://[email protected] ps

image

@czgtest czgtest changed the title breakpoint cannot be hit in remote debugging C# module cannot remote debug C# module via "-H ssh://pi@ipadress" Oct 16, 2019
@WardenGnaw WardenGnaw self-assigned this Oct 16, 2019
@WardenGnaw
Copy link
Contributor

Could you share your engine logs?

You can do this by adding:

"logging": {
   "engineLogging": true
}

@czgtest
Copy link
Author

czgtest commented Oct 18, 2019

@WardenGnaw here is the logs:

Starting: "docker" "-H ssh://[email protected]" exec -i SampleModuleCsharpPi sh -c "~/vsdbg/vsdbg --interpreter=vscode"
-> (C) {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"coreclr","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en"},"type":"request","seq":1}
Error from pipe program 'docker': invalid argument " ssh://[email protected]" for "-H, --host" flag: Invalid bind address format: ssh://[email protected]
<- (ERROR) {"request_seq":2,"success":false,"command":"attach","message":"The pipe program 'docker' exited unexpectedly with code 1.","body":{"error":{"id":1000,"format":"The pipe program 'docker' exited unexpectedly with code 1."}},"seq":1,"type":"response"}

image

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

5 participants