Documentation Center

  • Trial Software
  • Product Updates

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

|

Was this topic helpful?