Skip to main content Accessibility help
×
Hostname: page-component-77c89778f8-sh8wx Total loading time: 0 Render date: 2024-07-24T06:20:47.201Z Has data issue: false hasContentIssue false

11 - Debugging simulation

from Part IV - OPNET Modeling Facilities

Published online by Cambridge University Press:  05 February 2012

Zheng Lu
Affiliation:
University of Essex
Hongji Yang
Affiliation:
De Montfort University, Leicester
Get access

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
Publisher: Cambridge University Press
Print publication year: 2012

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

  • Debugging simulation
  • Zheng Lu, University of Essex, Hongji Yang, De Montfort University, Leicester
  • Book: Unlocking the Power of OPNET Modeler
  • Online publication: 05 February 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511667572.012
Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

  • Debugging simulation
  • Zheng Lu, University of Essex, Hongji Yang, De Montfort University, Leicester
  • Book: Unlocking the Power of OPNET Modeler
  • Online publication: 05 February 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511667572.012
Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

  • Debugging simulation
  • Zheng Lu, University of Essex, Hongji Yang, De Montfort University, Leicester
  • Book: Unlocking the Power of OPNET Modeler
  • Online publication: 05 February 2012
  • Chapter DOI: https://doi.org/10.1017/CBO9780511667572.012
Available formats
×