运行错误时调试方法

Posted YKmaster

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了运行错误时调试方法相关的知识,希望对你有一定的参考价值。

using System.Linq;

using System.Text;

namespace ConsoleApplicationl

{

    class Program

     {

            static void Main(string[] arge)

           {

                  //调试运行 : 点击启动 或 按 F5

                 //非调试运行 :CTRL + F5

                 Console.writeLine("请输入被除数");

                 string input = Consoule.ReadLine();

                  int a = int. parse(input);

                  Console.WriteLine("请输入除数");

                   input =  Console.ReadLine();

                   int b = int.Parse(input);

                    int c = a / b;

                    string result = a + "/" + b + "=" + c ;

                    Console.Write(resule);

                    Console.ReadLine();

                }

        }

}             

以上是关于运行错误时调试方法的主要内容,如果未能解决你的问题,请参考以下文章

在运行 UI 测试时调试应用程序

未显示错误时调试 GDB 中断

有没有办法在加载 dll 时调试发布版本?

启动时调试应用程序

打印时调试断言错误

如何运行时调试共享库?