External Interfaces Previous page   Next Page

Debugging on Windows

Compaq Visual Fortran

If you are using the Compaq (or DIGITAL) Visual Fortran compiler, you use the Microsoft debugging environment to debug your program.

  1. Start the Microsoft Visual Studio by typing at the DOS prompt
  2. In the Microsoft environment, from the Project menu, select Settings. In the window that opens, select the Debug tab. This options window contains edit boxes. In the edit box labeled Executable for debug session, enter the full path where MATLAB resides. All other edit boxes should be empty.
  3. Open the source files and set a break point on the desired line of code by right-clicking with your mouse on the line of code.
  4. From the Build menu, select Debug, and click Go.
  5. You will now be able to run your MEX-file in MATLAB and use the Microsoft debugging environment. For more information on how to debug in the Microsoft environment, see the Microsoft Development Studio documentation.

Previous page  Debugging on UNIX Calling MATLAB from C and Fortran Programs Next page

© 1994-2005 The MathWorks, Inc.