Debugging PM Apps with Two Monitors Does Not Require /2 Switch

ID Number: Q49824

2.20 2.30 2.35 3.00 3.10 3.11 3.12 3.50

OS/2

Summary:

Protected-mode CodeView (CVP) does not support dual-monitor debugging

via the /2 switch for Presentation Manager (PM) programs. However, you

can redirect the CodeView screen to a monochrome monitor when

debugging a PM application if you do the following:

1. Start a full-screen command prompt.

2. At the prompt, type the following command (this puts the prompt on

the monochrome monitor):

mode mono

Note: You must be in a 25-line screen mode before you attempt the

"mode mono". If you are in a 43- or 50-line mode, you will get an

error message.

3. At the prompt, type the following command, where "appname" is your

application's name:

cvp appname

CodeView will come up on the monochrome monitor and you will be

able to debug the PM application on the main color display.

4. After you are finished debugging, you can return the prompt to your

primary display by typing the following command:

mode co80