![]() ![]() ![]() ![]() For example, you can:Ĭopy sources to the target computer and build with dotnet build on the Linux machine.īuild the app on Windows, and then transfer the build artifacts to the Linux machine. ![]() You can use several methods to deploy the app prior to debugging. To configure this in Visual Studio, right-click the project, then choose Properties > Build > Advanced > Debugging Information. Make sure your project is configured to produce portable PDBs (which is the default setting), and make sure the PDBs are in the same location as the DLL.To disable this setting, choose Tools > Options > Debugging, and then deselect Enable Just My Code. If you need to use a Release configuration, first disable Just My Code. It is much harder to debug retail-compiled code (a Release configuration) than debug-compiled code. Consider using a Debug configuration when you build the application.To prepare your application for debugging: NET SDK is not required.įor comprehensive ASP.NET Core instructions, see Host ASP.NET Core on Linux with Nginx and Host ASP.NET Core on Linux with Apache. NET runtime on Linux, and find the page matching your Linux distribution (such as Ubuntu). Most SSH distributions install and enable SFTP by default, but that is not always the case. For example, on Ubuntu you can do that by running: sudo apt-get install openssh-server unzip curl On the Linux server, you need to install SSH server, unzip and install with either curl or wget. For debugging Linux running on Azure Kubernetes Service (AKS), Bridge to Kubernetes is recommended instead of attach to process. ![]()
0 Comments
Leave a Reply. |