Run»Attach to Process
The Attach to Process command opens the Attach to Process dialog box, which contains a list of currently running processes to which you can attach the LabWindows/CVI debugger. To receive the most useful debugging information, the DLL or EXE you want to attach to and debug must be built in LabWindows/CVI 2013 and later as well as in debug configuration. When you attach the LabWindows/CVI debugger to a process that contains LabWindows/CVI debug information, the source code opens in LabWindows/CVI and while the process is suspended you can use breakpoints and other LabWindows/CVI debugging tools to debug the process. The Attach to Process dialog box contains the following options:
- Available Processes—Displays the currently running processes to which you can attach the LabWindows/CVI debugger. Right-clicking in the available processes list provides options for searching for text in the list and sorting the list.
- Show processes from all users—Enable this checkbox to display processes created by all users logged into the computer.
- Show processes in all sessions—Enable this checkbox to display all processes running in other logon sessions.
You can attach to external processes, including executables that were not built with LabWindows/CVI. This is most useful in the case where the external process calls a LabWindows/CVI-built DLL. Use the Attach to Process dialog as an alternative to the Specify Executable and Command Line command, which requires that you load the DLL project before the external process is started.
Additionally, LabWindows/CVI installs and registers a just-in-time debugger you can use to attach to and debug a crashed process at the time of the crash.
Detaching from a Process
If the LabWindows/CVI debugger is attached to a process, you can detach from the process during execution of the application by selecting Detach from Process from the <<Running>> menu in the upper left corner of the LabWindows/CVI environment. While execution is suspended, you can also select Run»Detach from Process to detach the debugger from the process.
![]() |
Note You also can detach from a process that you started from the Run»Debug command. |