If you meant debugging the controller, you just need to make sure that you use your breakpoints correctly in the lines of the codes you created. After that, all you have to do is run through IIS Express, and you’ll be fine, VS will automatically offer you a look at the IDE, when you need to do a redo, etc.
From there, you can check your code using various debug windows in the "Debug" option on the top panel of VS.

By the way, if you carefully analyzed the state of local IIS with .NET Core, now there is no way to do this.
How to configure ASP.NET Core 1.0 to use local IIS instead of IIS Express?
And to further emphasize the pointlessness of using local IIS, here is a quote from this article :
However, with ASP.NET Core there is virtually no reason to run full IIS during development. What for? Because ASP.NET Core applications do not actually work inside IIS. Whether the call is being made from IIS, IIS Express, or you are executing the dotnet function directly from the command line, you use the same code and, in most cases, the same execution environment. Running inside IIS really doesn’t buy you anything else that you can’t easily simulate using the command line environment.
source share