Too slow in Debug mode VS 2017

While running MVC web application in Visual studio 2017 in Debug mode, taking lot of time to debug ( 10 mins to run). But without debug mode the application running quickly.