分类: 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