VS2012 Breakpoints are not getting hit

后端 未结 24 1716
小鲜肉
小鲜肉 2020-12-13 12:44

I have a class that looks like this:

public class MyService
{
    private MyService(){}
    public static string GetStuff()
    {
        var stuffDid = new          


        
24条回答
  •  盖世英雄少女心
    2020-12-13 13:19

    It could be beacuse you are only debugging 1 project not both Test and Core

    You can set VS to debug mutiple projects at once, you can do this by right-click your solution > Properties > Common Properties > StartUp Project

    Here you can set "Multiple Startup Projects" enter image description here

    Just set both Core and Test to start. This may solve your issue.

提交回复
热议问题