Book contents
- Frontmatter
- Contents
- Preface
- List of abbreviations
- Part I Preparation for OPNET Modeling
- Part II Modeling Custom Networks and Protocols
- Part III Modeling and Modifying Standard Networks and Protocols
- Part IV OPNET Modeling Facilities
- 11 Debugging simulation
- 12 OPNET programming in C++
- 13 Traffic in OPNET simulation
- 14 External model access (EMA)
- 15 OPNET co-simulation with third-party programs
- 16 Model authoring and security
- References
- Index
11 - Debugging simulation
from Part IV - OPNET Modeling Facilities
Published online by Cambridge University Press: 05 February 2012
- Frontmatter
- Contents
- Preface
- List of abbreviations
- Part I Preparation for OPNET Modeling
- Part II Modeling Custom Networks and Protocols
- Part III Modeling and Modifying Standard Networks and Protocols
- Part IV OPNET Modeling Facilities
- 11 Debugging simulation
- 12 OPNET programming in C++
- 13 Traffic in OPNET simulation
- 14 External model access (EMA)
- 15 OPNET co-simulation with third-party programs
- 16 Model authoring and security
- References
- Index
Summary
This chapter describes the debugging facilities that OPNET Modeler provides and shows how to debug OPNET models with different techniques. This chapter assumes that the reader understands general debugging concepts, such as call stack, breakpoint, trace and watch, etc.
Debugging facilities in OPNET Modeler
OPNET Modeler provides two levels of debugging capability: object-level debugging and source-level debugging. In object-level debugging, object refers to an OPNET simulation entity like packet, event, process, etc. The object-level debugging process follows the order in which discrete events are scheduled; therefore, it is normally used when you want to track the simulation on an event-by-event basis and track and inspect the simulation objects associated with these events. Object-level debugging reflects the internal logic of discrete event simulation. In source-level debugging, source refers to the simulation source code. The source-level debugging process follows the execution of source code; therefore, it is suitable if you want to track and watch the value of variables and inspect the details of your code. The object-level debugging technique is specific for debugging event-based simulation programs, and the sourcelevel debugging technique is for debugging general software programs. In practice, it is advisable to combine both debugging techniques in order to produce more reliable models.
An object-level debugger is integrated with OPNET Modeler itself. It is called OPNET Simulation Debugger (ODB).
- Type
- Chapter
- Information
- Unlocking the Power of OPNET Modeler , pp. 167 - 181Publisher: Cambridge University PressPrint publication year: 2012