Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
programming:visual-studio [2006/12/13 20:54]
cyril
programming:visual-studio [2013/09/19 16:41] (current)
Line 1: Line 1:
 ====== Visual Studio tips ====== ====== Visual Studio tips ======
  
-===== Useful features for debug =====+===== Useful features for debugging =====
  
 You probably already know classical features such as step-by-step execution (''Step Into'' or ''Step Over'' to enter or not in functions) with breakpoints (conditions, count, disabling etc), ''Watch'' window, etc. You probably already know classical features such as step-by-step execution (''Step Into'' or ''Step Over'' to enter or not in functions) with breakpoints (conditions, count, disabling etc), ''Watch'' window, etc.
Line 27: Line 27:
 If your program is used by another program and you want debug it in this context, you can. If your program is used by another program and you want debug it in this context, you can.
  
-With Visual Studio you can attach the debugger to a running process. Set ''Project Properties | Configuration Properties Debugging | Attach'' to yes, and be sure that the ''Command'' field still refers to your executable.+With Visual Studio you can attach the debugger to a running process. Set ''Project Properties | Configuration Properties Debugging | Attach'' to yes, and be sure that the ''Command'' field still refers to your executable.
  
 Then, just put a breakpoint in your DLL source code, launch your program in any way you want, and after attach the debugger with ''Start Debugging'' (F5) : when your program will be used it will stop on the breakpoint. Then, just put a breakpoint in your DLL source code, launch your program in any way you want, and after attach the debugger with ''Start Debugging'' (F5) : when your program will be used it will stop on the breakpoint.
programming/visual-studio.1166043287.txt.gz ยท Last modified: 2013/09/19 16:43 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0