| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → SimEvents |
| Contents | Index |
| Learn more about SimEvents |
sedebug(sys)
sedebug(sys, opts_struct)
sedebug(sys) begins a SimEvents debugger session on a model. sys is the name of the top-level system as a string. 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.
Start and end a debugger session for a SimEvents model:
Begin a debugger session for a particular model. At the MATLAB command prompt, enter:
sedebug('sedemo_count_attributes')The output is:
*** SimEvents Debugger *** Functions | Quick Start | Debugger Help %==============================================================================% Initializing Model sedemo_outputswitch sedebug>>
End the debugger session. At the sedebug>> prompt, enter:
sedb.quit
![]() | sedb.tbreak | simeventsconfig | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |