No native code debugging in CoreCLR console application projects in VS2015?

狂风中的少年 提交于 2019-12-02 07:25:38

The tooling doesn't have support for native debugging when running from VS. However, if you attach the debugger manually to the process, select both native and CoreClr (the option is in Debug -> Attach to Process) and you'll achieve what you want.

If you are using dnx then you can pass the --debug flag when the app starts, similar to this:

dnx --debug . run <args>

and it will wait for the native debugger to be attached.

PS: Caveat: if you pass --debug you must attach a native debugger. You cannot attach only the managed one.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!