Using Debugging Features
You can debug the M-files using the Editor/Debugger, which is a graphical user interface, and using debugging functions from the Command Window. You can use both methods interchangeably. The example describes both methods.
The debugging process consists of
Preparing for Debugging
Do the following to prepare for debugging:
- Open the file--To use the Editor/Debugger for debugging, open it with the file you will run, in this example,
- Save changes--If you are editing the file, save the changes before you begin debugging. If you try to run a file with unsaved changes, the file is automatically saved before it runs.
- Add the files to a directory on the search path or put them in the current directory--Be sure the file you run and any files it calls are in directories that are on the search path. If all files to be used are in the same directory, you can instead make that directory be the current directory.
| || Trial Run for Example|| ||Setting Breakpoints |