Skip to Main Content Skip to Search
Product Documentation

Starting the Simulink Debugger

You can start the debugger from either a Simulink model window or from the MATLAB Command Window.

Starting from a Model Window

  1. In a model window, select Tools > Simulink Debugger.

    The debugger graphical user interface opens. See Using the Debugger's Graphical User Interface.

  2. Continue selecting toolbar buttons.

Starting from the Command Window

  1. In the MATLAB Command Window, enter either

    • the sim command. For example, enter

      sim('vdp', 'StopTime', '10', 'debug', 'on')
    • or the sldebug command. For example, enter

      sldebug 'vdp'

    In both cases, the demo model vdp loads into memory, starts the simulation, and stops the simulation at the first block in the model execution list.

  2. Continue entering debugger commands.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS