![]() ![]() To debug the app, in your project, set breakpoints on some code. If not, add the variable.įor more information about environment variables, see Environments. Under Environment variables, make sure that ASPNETCORE_ENVIRONMENT is present with a value of Development. For a profile named after the project, this property specifies the Kestrel server URLs, typically and For IIS Express, the App SSL URL is typically For more information, see the IIS launch profile section under Configure the project.Īpp URL and App SSL URL specify the application URL(s). For an IIS profile, this is typically the same value as the App URL. For a profile named after the project (that is, the commandName property in launchSettings.json is Project), the Kestrel server listens to the port specified. Url specifies the location of host URL for. Make sure that Url, App URL, and App SSL URL are correct. For local IIS, select New and create a new IIS profile.For Kestrel, select the profile named after the project.Select the profile to configure for debugging. For more information on this file, see the Development and launchSettings.json section in Use multiple environments in ASP.NET Core. The UI presented corresponds to the settings in the project's launchSettings.json file. Select the Debug tab and click the link to open the Open debug launch profiles UI. Select the ASP.NET Core project in Visual Studio Solution Explorer and click the Properties icon, or press Alt+ Enter, or right-click and choose Properties. A default profile based on the project name is also present, which is configured for the Kestrel web server. If you're debugging on local IIS instead of IIS Express, make sure you meet the requirements for local IIS debugging. ![]() IIS Express is the default, and is preconfigured. If the debugger can't hit the breakpoints, see Troubleshoot debugging. ![]() To start debugging, select IIS Express () or Local IIS () in the toolbar, select Start Debugging from the Debug menu, or press F5. In the Visual Studio toolbar, make sure the configuration is set to Debug, and the browser you want appears in IIS Express () or Local IIS () in the emulator field.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |