湖边的白杨树

探索是一种乐趣

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

随笔分类 -  Debug

上一页 1 2

摘要:1. Select "Debug -> Windows -> Breakpoints" from VS menu.2. Click "New -> Break at Function...".3.For the get, type:ClassName.get_Counter() For the set, type:ClassName.set_Counter(int)You'll get a "No Source Available" when the breakpoint is hit, but you 阅读全文
posted @ 2014-01-04 15:07 fdyang 阅读(214) 评论(0) 推荐(0)

摘要:1. Exit the VS2012, and then re-open the solution.2. Clean the solution and build. 阅读全文
posted @ 2013-12-26 09:22 fdyang 阅读(245) 评论(0) 推荐(0)

摘要:Exception.Messagecontains only the message (doh) associated with the exception. Example:Object reference not set to an instance of an objectTheException.ToString()method will give a much more verbose output, containing the exception type, the message (from before), a stack trace, and all of these th 阅读全文
posted @ 2013-11-13 11:53 fdyang 阅读(677) 评论(0) 推荐(0)

摘要:有时候不用 VS 调试,在 代码里面加入 Debug.Writeline(" Debug information!!"); 这个时候打开 debug view 就可以检测出输出了。另外有个前提是solution、或 project 必须是 debug 模式。在程序中,多数人会加入Debug、Trace等输出,当程序编译成Debug模式的时候,这些语句就会起作用,如果编译成Release模式,这些语句就会被自动去除。 阅读全文
posted @ 2013-11-08 19:09 fdyang 阅读(303) 评论(0) 推荐(0)

摘要:System.IO.IOException: The handle is invalid. 00022846 11:39:49.098 AM [892] 00022847 11:39:49.098 AM [892] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 00022848 11:39:49.098 AM [892] at System.IO.__Error.WinIOError() 00022849 11:39:49.098 AM [892] at System.Threa... 阅读全文
posted @ 2013-10-18 14:23 fdyang 阅读(1706) 评论(0) 推荐(0)

摘要:Inconsistent accessibility: return type 'ConsoleApplication17.IBacklight' is less accessible than method 'ConsoleApplication17.BladeFactory.CreateBacklight(原因和对策: 如果没有修饰符的话,默认为internal, 增加public修饰符即可。 阅读全文
posted @ 2013-10-08 18:58 fdyang 阅读(305) 评论(0) 推荐(0)

摘要:Caught: System.ArgumentException: Destination array was not long enough. Check destIndex and length and the array's lower bounds. at System.Array.Copy(Array sourceArray Int32 sourceIndex Array destinationArray Int32 destinationIndex Int32 length Boolean reliable) at System.Collections.Generic.Qu 阅读全文
posted @ 2013-06-03 17:47 fdyang 阅读(2619) 评论(0) 推荐(0)

上一页 1 2