Visual Studio remote debugging application hosted on Linux - unable to enumerate running instances of the...












3














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










share|improve this question

















This question has an open bounty worth +50
reputation from Joelty ending in 7 days.


This question has not received enough attention.
















  • what kind of remote application it is?
    – kennyzx
    Dec 27 at 14:27










  • @kennyzx WebApplication / MVC
    – Joelty
    Dec 27 at 14:27










  • And what is the name of the process you are trying to attach to?
    – kennyzx
    Dec 27 at 14:49










  • @kennyzx Process: MyProjectName + Title:/home/deploy/app/MyProjectName StartUpArgument
    – Joelty
    Dec 27 at 14:57


















3














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










share|improve this question

















This question has an open bounty worth +50
reputation from Joelty ending in 7 days.


This question has not received enough attention.
















  • what kind of remote application it is?
    – kennyzx
    Dec 27 at 14:27










  • @kennyzx WebApplication / MVC
    – Joelty
    Dec 27 at 14:27










  • And what is the name of the process you are trying to attach to?
    – kennyzx
    Dec 27 at 14:49










  • @kennyzx Process: MyProjectName + Title:/home/deploy/app/MyProjectName StartUpArgument
    – Joelty
    Dec 27 at 14:57
















3












3








3


1





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










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 11 hours ago

























asked Dec 27 at 14:19









Joelty

8310




8310






This question has an open bounty worth +50
reputation from Joelty ending in 7 days.


This question has not received enough attention.








This question has an open bounty worth +50
reputation from Joelty ending in 7 days.


This question has not received enough attention.














  • what kind of remote application it is?
    – kennyzx
    Dec 27 at 14:27










  • @kennyzx WebApplication / MVC
    – Joelty
    Dec 27 at 14:27










  • And what is the name of the process you are trying to attach to?
    – kennyzx
    Dec 27 at 14:49










  • @kennyzx Process: MyProjectName + Title:/home/deploy/app/MyProjectName StartUpArgument
    – Joelty
    Dec 27 at 14:57




















  • what kind of remote application it is?
    – kennyzx
    Dec 27 at 14:27










  • @kennyzx WebApplication / MVC
    – Joelty
    Dec 27 at 14:27










  • And what is the name of the process you are trying to attach to?
    – kennyzx
    Dec 27 at 14:49










  • @kennyzx Process: MyProjectName + Title:/home/deploy/app/MyProjectName StartUpArgument
    – Joelty
    Dec 27 at 14:57


















what kind of remote application it is?
– kennyzx
Dec 27 at 14:27




what kind of remote application it is?
– kennyzx
Dec 27 at 14:27












@kennyzx WebApplication / MVC
– Joelty
Dec 27 at 14:27




@kennyzx WebApplication / MVC
– Joelty
Dec 27 at 14:27












And what is the name of the process you are trying to attach to?
– kennyzx
Dec 27 at 14:49




And what is the name of the process you are trying to attach to?
– kennyzx
Dec 27 at 14:49












@kennyzx Process: MyProjectName + Title:/home/deploy/app/MyProjectName StartUpArgument
– Joelty
Dec 27 at 14:57






@kennyzx Process: MyProjectName + Title:/home/deploy/app/MyProjectName StartUpArgument
– Joelty
Dec 27 at 14:57



















active

oldest

votes











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
});


}
});














draft saved

draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Monofisismo

Angular Downloading a file using contenturl with Basic Authentication

Olmecas