Chinaunix首页 | 论坛 | 博客
  • 博客访问: 359396
  • 博文数量: 157
  • 博客积分: 3001
  • 博客等级: 中校
  • 技术积分: 1330
  • 用 户 组: 普通用户
  • 注册时间: 2008-11-06 13:47
文章分类

全部博文(157)

文章存档

2011年(1)

2010年(28)

2009年(124)

2008年(4)

我的朋友

分类: WINDOWS

2009-09-04 17:30:43

         Setting a breakpoint

1.       Open source file and go to desired line of code

2.       Press F9 or right client on mouse and select Insert/remove breakpoint (red dot appears)

         Stepping through code

1.       Step Into (F11)

2.       Step Over (F10)

3.       Step Out (Shift + F11)

4.       Run to Cursor (Ctrl + F10)

5.       Set Next Statement

         Viewing / Changing variables

1.       Variables window

2.       Leave cursor over variable in source code for a second

3.       Highlight variable, right click on mouse, and pick “QuickWatch”

         “Add Watch” will add it to watch window

         Attaching to a running process

1.       Find the process id from Task Manager or Server log file.

2.       Two ways to attach:

         Right click on process in Task Manager and pick “Debug”

         In devenv, go to DebugèProcessesèAttach to appropriate process

         Editing or enabling/disabling breakpoints

Edit => Breakpoints

阅读(520) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~