Visual Studio remote debugging application hosted on Linux - unable to enumerate running instances of the...
I'm trying to debug remotely an application that's being hosted on Linux
"Debian GNU/Linux 8 (jessie)"
with
.NET Command Line Tools (2.1.500)
I'm connecting via Visual Studio via SSH
and I've tried both modes:
Managed .NET Core for Unix
Native (GDB)
Project has been compiled on Windows
dotnet publish --configuration Release -r linux-x64
and also
dotnet publish --configuration Debug -r linux-x64
and works perfectly fine, but for some reason I'm receiving:
Managed .NET Core for Unix:
Fail to attach to process: Unable to enumerate running instances of the CoreCLR in the specific process
And if that's relevant (probably not, because other people use Managed .NET Core for Unix for that)
Native (GDB):
Unable to start debugging. Unable to estabilish a connection to GDB. Debug output may containt more information
debug information:
Starting unix command: 'gdb --interpreter=mi'
bash: gdb: command not found
gdb --interpreter=mi exited with code 127.
In Visual Studio process is listed as:
Process: MyProjectName
Title: /home/deploy/app/MyProjectName StartUpArgument
Anybody has an idea what can cause that?
You can see how people do that with Raspberry Pi here:
https://youtu.be/ySzTCl-H10w?t=955
c# visual-studio .net-core remote-debugging
add a comment |
I'm trying to debug remotely an application that's being hosted on Linux
"Debian GNU/Linux 8 (jessie)"
with
.NET Command Line Tools (2.1.500)
I'm connecting via Visual Studio via SSH
and I've tried both modes:
Managed .NET Core for Unix
Native (GDB)
Project has been compiled on Windows
dotnet publish --configuration Release -r linux-x64
and also
dotnet publish --configuration Debug -r linux-x64
and works perfectly fine, but for some reason I'm receiving:
Managed .NET Core for Unix:
Fail to attach to process: Unable to enumerate running instances of the CoreCLR in the specific process
And if that's relevant (probably not, because other people use Managed .NET Core for Unix for that)
Native (GDB):
Unable to start debugging. Unable to estabilish a connection to GDB. Debug output may containt more information
debug information:
Starting unix command: 'gdb --interpreter=mi'
bash: gdb: command not found
gdb --interpreter=mi exited with code 127.
In Visual Studio process is listed as:
Process: MyProjectName
Title: /home/deploy/app/MyProjectName StartUpArgument
Anybody has an idea what can cause that?
You can see how people do that with Raspberry Pi here:
https://youtu.be/ySzTCl-H10w?t=955
c# visual-studio .net-core remote-debugging
what kind of remote application it is?
– kennyzx
Dec 27 '18 at 14:27
@kennyzx WebApplication / MVC
– Joelty
Dec 27 '18 at 14:27
And what is the name of the process you are trying to attach to?
– kennyzx
Dec 27 '18 at 14:49
@kennyzxProcess: MyProjectName
+Title:/home/deploy/app/MyProjectName StartUpArgument
– Joelty
Dec 27 '18 at 14:57
add a comment |
I'm trying to debug remotely an application that's being hosted on Linux
"Debian GNU/Linux 8 (jessie)"
with
.NET Command Line Tools (2.1.500)
I'm connecting via Visual Studio via SSH
and I've tried both modes:
Managed .NET Core for Unix
Native (GDB)
Project has been compiled on Windows
dotnet publish --configuration Release -r linux-x64
and also
dotnet publish --configuration Debug -r linux-x64
and works perfectly fine, but for some reason I'm receiving:
Managed .NET Core for Unix:
Fail to attach to process: Unable to enumerate running instances of the CoreCLR in the specific process
And if that's relevant (probably not, because other people use Managed .NET Core for Unix for that)
Native (GDB):
Unable to start debugging. Unable to estabilish a connection to GDB. Debug output may containt more information
debug information:
Starting unix command: 'gdb --interpreter=mi'
bash: gdb: command not found
gdb --interpreter=mi exited with code 127.
In Visual Studio process is listed as:
Process: MyProjectName
Title: /home/deploy/app/MyProjectName StartUpArgument
Anybody has an idea what can cause that?
You can see how people do that with Raspberry Pi here:
https://youtu.be/ySzTCl-H10w?t=955
c# visual-studio .net-core remote-debugging
I'm trying to debug remotely an application that's being hosted on Linux
"Debian GNU/Linux 8 (jessie)"
with
.NET Command Line Tools (2.1.500)
I'm connecting via Visual Studio via SSH
and I've tried both modes:
Managed .NET Core for Unix
Native (GDB)
Project has been compiled on Windows
dotnet publish --configuration Release -r linux-x64
and also
dotnet publish --configuration Debug -r linux-x64
and works perfectly fine, but for some reason I'm receiving:
Managed .NET Core for Unix:
Fail to attach to process: Unable to enumerate running instances of the CoreCLR in the specific process
And if that's relevant (probably not, because other people use Managed .NET Core for Unix for that)
Native (GDB):
Unable to start debugging. Unable to estabilish a connection to GDB. Debug output may containt more information
debug information:
Starting unix command: 'gdb --interpreter=mi'
bash: gdb: command not found
gdb --interpreter=mi exited with code 127.
In Visual Studio process is listed as:
Process: MyProjectName
Title: /home/deploy/app/MyProjectName StartUpArgument
Anybody has an idea what can cause that?
You can see how people do that with Raspberry Pi here:
https://youtu.be/ySzTCl-H10w?t=955
c# visual-studio .net-core remote-debugging
c# visual-studio .net-core remote-debugging
edited Jan 1 at 19:02


Isma
8,41342138
8,41342138
asked Dec 27 '18 at 14:19
JoeltyJoelty
28011
28011
what kind of remote application it is?
– kennyzx
Dec 27 '18 at 14:27
@kennyzx WebApplication / MVC
– Joelty
Dec 27 '18 at 14:27
And what is the name of the process you are trying to attach to?
– kennyzx
Dec 27 '18 at 14:49
@kennyzxProcess: MyProjectName
+Title:/home/deploy/app/MyProjectName StartUpArgument
– Joelty
Dec 27 '18 at 14:57
add a comment |
what kind of remote application it is?
– kennyzx
Dec 27 '18 at 14:27
@kennyzx WebApplication / MVC
– Joelty
Dec 27 '18 at 14:27
And what is the name of the process you are trying to attach to?
– kennyzx
Dec 27 '18 at 14:49
@kennyzxProcess: MyProjectName
+Title:/home/deploy/app/MyProjectName StartUpArgument
– Joelty
Dec 27 '18 at 14:57
what kind of remote application it is?
– kennyzx
Dec 27 '18 at 14:27
what kind of remote application it is?
– kennyzx
Dec 27 '18 at 14:27
@kennyzx WebApplication / MVC
– Joelty
Dec 27 '18 at 14:27
@kennyzx WebApplication / MVC
– Joelty
Dec 27 '18 at 14:27
And what is the name of the process you are trying to attach to?
– kennyzx
Dec 27 '18 at 14:49
And what is the name of the process you are trying to attach to?
– kennyzx
Dec 27 '18 at 14:49
@kennyzx
Process: MyProjectName
+ Title:/home/deploy/app/MyProjectName StartUpArgument
– Joelty
Dec 27 '18 at 14:57
@kennyzx
Process: MyProjectName
+ Title:/home/deploy/app/MyProjectName StartUpArgument
– Joelty
Dec 27 '18 at 14:57
add a comment |
2 Answers
2
active
oldest
votes
What ste
Step 1
Step 2
Step 3
Step 4
Step 5
Nothing has changed, the same error.
– Joelty
Jan 7 at 8:11
did you try connect by private key
– Mohamed Elrashid
Jan 7 at 22:42
add a comment |
Apparently our stupidity is limitless
We've been running our app as a service but FROM OTHER USER ACCOUNT THAN WAS USED IN SSH
Connecting to process works properly, but for some reason
Breakpoint will not currently be hit. No symbols have been loaded for this document
edit:
Solution:
https://developercommunity.visualstudio.com/content/problem/97445/vs2017-the-breakpoint-will-not-currently-be-hit-no.html
I also checked:
Enable source link support
Fall back to git credential manager auth. for all source link requests
Enable source server support
Enable just my code [OFF]
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53946525%2fvisual-studio-remote-debugging-application-hosted-on-linux-unable-to-enumerate%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
What ste
Step 1
Step 2
Step 3
Step 4
Step 5
Nothing has changed, the same error.
– Joelty
Jan 7 at 8:11
did you try connect by private key
– Mohamed Elrashid
Jan 7 at 22:42
add a comment |
What ste
Step 1
Step 2
Step 3
Step 4
Step 5
Nothing has changed, the same error.
– Joelty
Jan 7 at 8:11
did you try connect by private key
– Mohamed Elrashid
Jan 7 at 22:42
add a comment |
What ste
Step 1
Step 2
Step 3
Step 4
Step 5
What ste
Step 1
Step 2
Step 3
Step 4
Step 5
answered Jan 6 at 0:57


Mohamed ElrashidMohamed Elrashid
1,9401922
1,9401922
Nothing has changed, the same error.
– Joelty
Jan 7 at 8:11
did you try connect by private key
– Mohamed Elrashid
Jan 7 at 22:42
add a comment |
Nothing has changed, the same error.
– Joelty
Jan 7 at 8:11
did you try connect by private key
– Mohamed Elrashid
Jan 7 at 22:42
Nothing has changed, the same error.
– Joelty
Jan 7 at 8:11
Nothing has changed, the same error.
– Joelty
Jan 7 at 8:11
did you try connect by private key
– Mohamed Elrashid
Jan 7 at 22:42
did you try connect by private key
– Mohamed Elrashid
Jan 7 at 22:42
add a comment |
Apparently our stupidity is limitless
We've been running our app as a service but FROM OTHER USER ACCOUNT THAN WAS USED IN SSH
Connecting to process works properly, but for some reason
Breakpoint will not currently be hit. No symbols have been loaded for this document
edit:
Solution:
https://developercommunity.visualstudio.com/content/problem/97445/vs2017-the-breakpoint-will-not-currently-be-hit-no.html
I also checked:
Enable source link support
Fall back to git credential manager auth. for all source link requests
Enable source server support
Enable just my code [OFF]
add a comment |
Apparently our stupidity is limitless
We've been running our app as a service but FROM OTHER USER ACCOUNT THAN WAS USED IN SSH
Connecting to process works properly, but for some reason
Breakpoint will not currently be hit. No symbols have been loaded for this document
edit:
Solution:
https://developercommunity.visualstudio.com/content/problem/97445/vs2017-the-breakpoint-will-not-currently-be-hit-no.html
I also checked:
Enable source link support
Fall back to git credential manager auth. for all source link requests
Enable source server support
Enable just my code [OFF]
add a comment |
Apparently our stupidity is limitless
We've been running our app as a service but FROM OTHER USER ACCOUNT THAN WAS USED IN SSH
Connecting to process works properly, but for some reason
Breakpoint will not currently be hit. No symbols have been loaded for this document
edit:
Solution:
https://developercommunity.visualstudio.com/content/problem/97445/vs2017-the-breakpoint-will-not-currently-be-hit-no.html
I also checked:
Enable source link support
Fall back to git credential manager auth. for all source link requests
Enable source server support
Enable just my code [OFF]
Apparently our stupidity is limitless
We've been running our app as a service but FROM OTHER USER ACCOUNT THAN WAS USED IN SSH
Connecting to process works properly, but for some reason
Breakpoint will not currently be hit. No symbols have been loaded for this document
edit:
Solution:
https://developercommunity.visualstudio.com/content/problem/97445/vs2017-the-breakpoint-will-not-currently-be-hit-no.html
I also checked:
Enable source link support
Fall back to git credential manager auth. for all source link requests
Enable source server support
Enable just my code [OFF]
edited Jan 7 at 12:54
answered Jan 7 at 8:41
JoeltyJoelty
28011
28011
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53946525%2fvisual-studio-remote-debugging-application-hosted-on-linux-unable-to-enumerate%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
what kind of remote application it is?
– kennyzx
Dec 27 '18 at 14:27
@kennyzx WebApplication / MVC
– Joelty
Dec 27 '18 at 14:27
And what is the name of the process you are trying to attach to?
– kennyzx
Dec 27 '18 at 14:49
@kennyzx
Process: MyProjectName
+Title:/home/deploy/app/MyProjectName StartUpArgument
– Joelty
Dec 27 '18 at 14:57