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












6















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

























  • 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


















6















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

























  • 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
















6












6








6


0






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











  • @kennyzx Process: 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











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



















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














2 Answers
2






active

oldest

votes


















0














What ste



Step 1



enter image description here



Step 2



enter image description here



Step 3



enter image description here



Step 4



enter image description here



Step 5



enter image description here






share|improve this answer
























  • 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



















0














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]






share|improve this answer

























    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

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    What ste



    Step 1



    enter image description here



    Step 2



    enter image description here



    Step 3



    enter image description here



    Step 4



    enter image description here



    Step 5



    enter image description here






    share|improve this answer
























    • 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
















    0














    What ste



    Step 1



    enter image description here



    Step 2



    enter image description here



    Step 3



    enter image description here



    Step 4



    enter image description here



    Step 5



    enter image description here






    share|improve this answer
























    • 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














    0












    0








    0







    What ste



    Step 1



    enter image description here



    Step 2



    enter image description here



    Step 3



    enter image description here



    Step 4



    enter image description here



    Step 5



    enter image description here






    share|improve this answer













    What ste



    Step 1



    enter image description here



    Step 2



    enter image description here



    Step 3



    enter image description here



    Step 4



    enter image description here



    Step 5



    enter image description here







    share|improve this answer












    share|improve this answer



    share|improve this answer










    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



















    • 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













    0














    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]






    share|improve this answer






























      0














      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]






      share|improve this answer




























        0












        0








        0







        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]






        share|improve this answer















        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]







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jan 7 at 12:54

























        answered Jan 7 at 8:41









        JoeltyJoelty

        28011




        28011






























            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.




            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

            MongoDB - Not Authorized To Execute Command

            in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith

            How to fix TextFormField cause rebuild widget in Flutter