简体   繁体   中英

Which process Visual Studio has to attach to run DNX process?

I ran a Web API that I created with the command dnx web . The service is running fine and I get the result too.

I want to attach the Visual Studio Process to this dnx process and debug the API call. Which process I need to attach to?

在此处输入图片说明

Use dnx-watch. this show the dnx process. It also automatic restart the server after code change

A fast way to debug is to insert Debugger.Launch(); in your code, on the place where you want to start to debug.

It is faster than attach to the right process

dnx-watch can be installed by

dnu commands install Microsoft.Dnx.Watcher

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM