You can debug two or more applications at the same time, such as a dynamic data exchange (DDE) client and server. However, when global symbols are shared by applications (such as the symbol name WINMAIN), CVW resolves symbol references to the first application named when you started CVW.
Perform the following steps to debug two applications at the same time:
1.Start CVW as usual for a single application.
2.Type the name of the second application when CVW displays a dialog box with the following message:
Name any other DLL or executable with debug info.
You must include the .EXE extension after the filename of the second application.
3.Set breakpoints in either or both applications, choosing Open Module from the CVW File menu to display the source code for the different modules.
4.Press F5 to continue running the first application.
5.From the Program Manager File menu, choose Run, type the application name and any application arguments, and press ENTER or choose the OK button to start execution of the second application.
An alternative way to load the symbols for a second application is to use the /l option on the command line when you start CVW, as follows:
cvw /l second.exe first.exe
The /l option and the name of the second application must precede the name of the first application on the command line in the Run dialog box. You can repeat the /l option for each application to be included in the debugging session. Once CVW starts, choose the Run command from the Program Manager File menu to start the second application.