Visual Studio使用教程:[1]Debug调试
1、启动Microsoft Visual Studio(以下简称VS);
![Visual Studio使用教程:[1]Debug调试](https://exp-picture.cdn.bcebos.com/cfa9ae04541bd10fcd75bd2eba0e1799e82aa7eb.jpg)
2、新建一个控制台工程
![Visual Studio使用教程:[1]Debug调试](https://exp-picture.cdn.bcebos.com/6bbfdd14f1c595ee0b92079327530688902c9aeb.jpg)
3、查看VS上菜撮劝丛食单栏位,如图标出了debug相应的一些操作快捷键F5:运行调试CTRL + F5:运行不调试F10:跨过程序执行F11:单步逐句执行
![Visual Studio使用教程:[1]Debug调试](https://exp-picture.cdn.bcebos.com/dda98e4800fc77f7cc5def94c8715fdb372090eb.jpg)
4、新建主程序入口,即本例中的Program.cs编写一个简单处理逻辑,无任何实际意义,仅作为示范用例点击左侧边框,标出断点位置
![Visual Studio使用教程:[1]Debug调试](https://exp-picture.cdn.bcebos.com/ccc83ec5260f883583d9e96ace078801397086eb.jpg)
5、F5启动运行调试,F10,F11控制debug语句跳转;
![Visual Studio使用教程:[1]Debug调试](https://exp-picture.cdn.bcebos.com/a749bb0f94fc508cf29d774c01775ddd894cfdeb.jpg)
6、通过控制台,查看输出内容,判断程序进度并根据输出内容判断程序是否运行正常
![Visual Studio使用教程:[1]Debug调试](https://exp-picture.cdn.bcebos.com/e6ae36066b0192dd471306471a87031c98c0f0eb.jpg)
7、当遇到bug是,界面会提示错误
![Visual Studio使用教程:[1]Debug调试](https://exp-picture.cdn.bcebos.com/955ea0e434daf05ecb70c9c5751d96d81919e5eb.jpg)