C# Debug和Testing相关面试题
1. .NET SDK自带的调试工具是哪个?
a. CorDBG — 命令行调试器, 使用CorDBG需要在编译原始C#文件的时候使用/debug开关
b. DbgCLR — 界面调试器, Visual Studion .net 使用 DbgCLR
2. assert()方法有什么作用?
在debug编译过程中,assert会把一个boolean条件作为参数,并且在条件不成立的时候报错,程序在boolean条件为true的时候不会有任何影响。
3. Debug类和Trace类有什么区别?
Documentataion是一样的, Debug类只在调试环境中用,Trace类在debug环境和交付环境都可以用。
4. 在System.Diagnostics.TraceSwitcher里面,共有哪五种跟踪级别(Tracing Levels)?
5. TextWriterTraceListener的输出会输出到哪里?
根据传到它的构造方法的参数,可以输出到Console或者一个文本文件
6. 如何调试一个ASP.NET web应用?
Attach aspnet_wp.exe 进程到你的DbgCLR debugger
7. 在debug一个C# application的时候,能不能改变一个变量的值?
可以,如果你使用Visual Studio.NET, 只需到Immediate window改就行了
a. CorDBG — 命令行调试器, 使用CorDBG需要在编译原始C#文件的时候使用/debug开关
b. DbgCLR — 界面调试器, Visual Studion .net 使用 DbgCLR
2. assert()方法有什么作用?
在debug编译过程中,assert会把一个boolean条件作为参数,并且在条件不成立的时候报错,程序在boolean条件为true的时候不会有任何影响。
3. Debug类和Trace类有什么区别?
Documentataion是一样的, Debug类只在调试环境中用,Trace类在debug环境和交付环境都可以用。
4. 在System.Diagnostics.TraceSwitcher里面,共有哪五种跟踪级别(Tracing Levels)?
5. TextWriterTraceListener的输出会输出到哪里?
根据传到它的构造方法的参数,可以输出到Console或者一个文本文件
6. 如何调试一个ASP.NET web应用?
Attach aspnet_wp.exe 进程到你的DbgCLR debugger
7. 在debug一个C# application的时候,能不能改变一个变量的值?
可以,如果你使用Visual Studio.NET, 只需到Immediate window改就行了
【C# Debug和Testing相关面试题】相关文章
2. What\'s the difference between Debug and Trace class? (Debug类与Trace类有什么区别)
3. String、StringBuffer、StringBuilder有区别
5. 软件测试LoadRunner面试题:Explain the following functions: – lr_debug_message
6. Java里面StringBuilder和StringBuffer有什么区别
7. Linux Interview Questions For software testers
8. 简述你对Statement,PreparedStatement,CallableStatement的理解
10. do you have any Best Practice for testing
本文来源:https://www.mianshiwenti.com/a12984.html
进入下载页面
﹝C# Debug和Testing相关面试题﹞相关内容
- StringBuilder和String的区别
- String s = new String(“xyz”);创建了几个String Object?
- 说说在weblogic中开发消息Bean时的persistent与non-persisten的差别
- Oracle及SQL相关面试题
- 声明struct x1 { . . . }; 和typedef struct { . . . }x2;有什么不同
- 介绍一下.NET构架下remoting和webservice
- 什么是表空间(tablespace)和系统表空间(System tablespace)
- 什么是表空间(tablespace)和系统表空间(System tablespace)?
- Spring和Struts的区别
- Static Nested Class 和 Inner Class的不同