Attach to process: used to bind to a process for debugging.
Have you ever experienced this: When you press F5 to start debugging,ProgramIt takes a long time to start. For example, it may take a long time to load a large file or resource. In this case, you may have to wait a long time for the program to start. In fact, this wastes a lot of time. Is there a better solution? Yes, it is the attach to proces function provided by. You just need to start the program to be debugged, and then attach the program and the source code to debug it. The program will stop at the breakpoint you set in the source code. After debugging is complete, as long as you do not close your process, you can call it again next time without opening the program, which reduces the waiting time.
The specific method is:
Start the process to be debugged and select attach to process from the tool menu in vs. The following dialog box is displayed:
Select default for tansport to bind the processes on the local machine. avaliable process lists the processes currently running on the local machine. Select the processes you want to debug and click attach to complete the binding, next we can start debugging.
In addition, attach to process can also be used for remote debugging. You only need to change the tansport option, which is very convenient.
From: http://blog.csdn.net/chengtg/article/details/6280238
Attach to process: used to bind to a process for debugging.
Have you ever experienced this: it takes a long time for the program to start debugging by pressing F5, for example, loading large files or resources, and you may have to wait a long time, the next debugging has to wait a long time for the program to start. In fact, this wastes a lot of time. Is there a better solution? Yes, it is the attach to proces function provided by. You just need to start the program to be debugged, and then attach the program and the source code to debug it. The program will stop at the breakpoint you set in the source code. After debugging is complete, as long as you do not close your process, you can call it again next time without opening the program, which reduces the waiting time.
The specific method is:
Start the process to be debugged and select attach to process from the tool menu in vs. The following dialog box is displayed:
Select default for tansport to bind the processes on the local machine. avaliable process lists the processes currently running on the local machine. Select the processes you want to debug and click attach to complete the binding, next we can start debugging.
In addition, attach to process can also be used for remote debugging. You only need to change the tansport option, which is very convenient.
From: http://blog.csdn.net/chengtg/article/details/6280238