Debug.WriteLine not working

前端 未结 13 1972
梦毁少年i
梦毁少年i 2020-12-03 03:07

In the past, perhaps versions of Visual Studio prior to the 2008 that I am using now, I would do something like this in my VB.NET code:

System.Diagnostics.De         


        
13条回答
  •  温柔的废话
    2020-12-03 03:21

    It happens. I have the similar symptom when I am developing ASP.NET MVC applications on Visual Studio 2010 web developer Express Edition. The execution doesn't break at the breakpoint. There is no output when it executes System.Diagnostic.Debug.Writeline (even though it runs with debug start), and there is nothing wrong with web.config.

    My workaround is: - Goto project properties--> web - In the Debugger section, check the the ASP.NET option

    Hope this helps someone who comes across this thread.

提交回复
热议问题