Skip to Main Content Skip to Search
Product Documentation

sedebug - Debug discrete-event simulation

Syntax

sedebug(sys)
sedebug(sys, opts_struct)

Description

sedebug(sys) begins a SimEvents debugger session on a model. sys is the name of the top-level system. After you enter this command at the MATLAB command prompt, the prompt changes to sedebug>>. At the new prompt, you can enter debugging commands.

sedebug(sys, opts_struct) applies debugging options in opts_struct. To obtain an options structure in the correct format, use se_getdbopts. You can set the StartFcn field of opts_struct to a cell array of strings representing commands that the debugger executes after the debugger session begins.

Input Arguments

sys

String that represents the top-level system of a model.

opts_struct

Structure that describes options for a SimEvents debugger session. The StartFcn field of the structure is a cell array of strings.

Examples

Start and end a debugger session for a SimEvents model:

  1. Begin a debugger session for a particular model. At the MATLAB command prompt, enter:

    sedebug('sedemo_count_attributes')

    The output is:

    *** SimEvents Debugger ***
    
    Functions | Help | Watch Video Tutorial
    
    %==============================================================================%
    Initializing Model sedemo_count_attributes
    sedebug>> 
  2. End the debugger session. At the sedebug>> prompt, enter:

    sedb.quit

See Also

se_getdbopts | sedb.quit

How To

  


Free Discrete Event Simulation Technical Kit

Model electronic system architectures, process flows, and logistics as queuing systems or agent-based systems.

Get free kit

Trials Available

Try the latest version of discrete-event simulation products.

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