asp.net - How To Debug Web API Project From MVC Project In Same Solution -


in vs 2012, attempting create mvc 4 web application jquery calls web api project. (other devs consuming api our current, native app, , adding api in future.) have 1 project web api, , project mvc 4 website. can set 1 of them run, , use localhost:xxxxx.

how debug changes both? example, let's add new api path /api/customer/get , new jquery ajax call path , resulting json. i've changed code in both projects , want follow end-to-end; how launch both? how debug both?

just clear, mvc app isn't making server-side calls api, i'm using mvc able use bundling, minification, , (hopefully) pre-compiled handlebars templates in .net; api calls coming jquery. still relatively new these technologies, alternate suggestions welcome.

thank in advance.

i had same problem , have found solution here:

forums.asp.net

the fix following:

in solution file, click properties go startup project node (if not selected)

next select multiple startup projects. select website , webservice , in action column make sure both of them have "start" selected.

now when debug website , put break point in webservice, should hit break point.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -