Remote debug problem generic host RRS feed

  • Question

  • Visual Studio 2019 16.7.7

    I have a .net 3.1 console app implemented as a generic host.

    This works fine on development machine.

    Now I want to do some changes and debug remotely on another machine.
    Have installed remote debugger on the other machine, set Debug/Use remote machine and entered ip address of it (without port).
    Authentication mode = none, Allow all users is set on the remote debugger.
    Further the Build/Output path is changed to a path on the remote machine (by network share).
    Compiling is fine, files are built on the remote machine and I may run the exe file on the remote machine which works fine.
    Then I start a remote debugging and little is happening it seems, however, generic host is built, services are constructed, but nothing is logged (using serilog).
    Then I observe that the Run() method on the IHost returns immediately without any trace of why.

    Anyone knows why I cannot debug correctly?

    EDIT: Found that my appsettings.json entries are not read when debugging remotely (but perfectly fine when debugging locallY). But I am not able to see why and how to fix

    • Edited by EuroEager Saturday, October 31, 2020 1:11 PM
    Saturday, October 31, 2020 11:20 AM


  • Changing working directory (Project properties/Debug) made a big difference :)
    • Marked as answer by EuroEager Sunday, November 1, 2020 10:19 AM
    Sunday, November 1, 2020 10:18 AM