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

后端 未结 1 577
轻奢々
轻奢々 2021-01-23 17:45

I really want to jump all over CoreCLR. The new project structure, the merging of nuget into the build system, the automatic refreshing of solutions when the file system reports

1条回答
  •  春和景丽
    2021-01-23 18:15

    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

    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.

    0 讨论(0)
提交回复
热议问题