Debugging
[Core]

Collaboration diagram for Debugging:

Modules

 Assert
 

assert functions and macros


 Logging
 

Logging functions and macros.


Defines

#define NS_BREAKPOINT()   ns3::BreakpointFallback ()
#define NS_FATAL_ERROR(msg)
 fatal error handling

Define Documentation

 
#define NS_BREAKPOINT (  )     ns3::BreakpointFallback ()

Inserts a breakpoint instruction (or equivalent system call) into the code for selected machines. When an NS_ASSERT cannot verify its condition, this macro is used. Falls back to calling AssertBreakpoint() for architectures where breakpoint assembly instructions are not supported.

Definition at line 56 of file breakpoint.h.

#define NS_FATAL_ERROR ( msg   ) 
Value:
do                                                    \
    {                                                   \
      std::cerr << msg << std::endl;            \
      int *a = 0;                                       \
      *a = 0;                                           \
    }                                                   \
  while (false)

fatal error handling

Parameters:
msg message to output when this macro is hit.

When this macro is hit at runtime, the user-specified error message is output and the program is halted by dereferencing a null pointer. This macro is enabled unconditionally in all builds, including debug and optimized builds.

Definition at line 37 of file fatal-error.h.

Referenced by anonymous_namespace{type-id.cc}::IidManager::AddAttribute(), ns3::BridgeNetDevice::AddBridgePort(), anonymous_namespace{type-id.cc}::IidManager::AddConstructor(), ns3::CsmaNetDevice::AddHeader(), ns3::Object::AggregateObject(), anonymous_namespace{type-id.cc}::IidManager::AllocateUid(), ns3::GlobalValue::Bind(), ns3::EmuNetDevice::CreateSocket(), ns3::DataRate::DataRate(), ns3::PointerValue::DeserializeFromString(), ns3::ObjectVectorValue::DeserializeFromString(), ns3::AttributeList::DeserializeFromString(), ns3::Resolver::DoArrayResolve(), ns3::Callback< void, int8_t >::DoAssign(), ns3::NqstaWifiMac::Enqueue(), ns3::AdhocWifiMac::Enqueue(), ns3::EmuNetDevice::FindCreator(), ns3::Ipv4L3Protocol::FindInterfaceForAddr(), ns3::CsmaNetDevice::FrameSizeFromMtu(), ns3::ObjectBase::GetAttribute(), ns3::EmuNetDevice::GetChannel(), anonymous_namespace{type-id.cc}::IidManager::GetConstructor(), ns3::EmuNetDevice::GetMtu(), ns3::RandomVariableBase::GetRandomSeeds(), ns3::TagIterator::Item::GetTag(), ns3::GlobalValue::GetValue(), ns3::GlobalValue::GlobalValue(), ns3::MobilityHelper::Install(), ns3::SystemThreadImpl::Join(), ns3::olsr::AgentImpl::LinkSensing(), ns3::SystemMutexPrivate::Lock(), ns3::LogComponent::LogComponent(), ns3::ArpL3Protocol::Lookup(), ns3::AttributeList::LookupAttributeFullNameByChecker(), ns3::CsmaNetDevice::MtuFromFrameSize(), ns3::CommandLine::PrintAttributes(), ns3::CsmaNetDevice::ProcessHeader(), ns3::RealtimeSimulatorImpl::ProcessOneEvent(), ns3::EmuNetDevice::ReadThread(), ns3::CsmaNetDevice::Receive(), ns3::PacketMetadata::RemoveHeader(), ns3::PacketMetadata::RemoveTrailer(), ns3::olsr::RoutingTable::RequestIfIndex(), ns3::olsr::RoutingTable::RequestRoute(), ns3::Timer::Schedule(), ns3::EmuNetDevice::SendFrom(), ns3::olsr::AgentImpl::SendHello(), ns3::TcpL4Protocol::SendPacket(), ns3::EnumValue::SerializeToString(), ns3::Ns3NscStack::Set(), ns3::AttributeList::Set(), ns3::TimerImpl::SetArgs(), ns3::Watchdog::SetArguments(), ns3::Timer::SetArguments(), ns3::ObjectBase::SetAttribute(), ns3::EmuNetDevice::SetDataRate(), ns3::Simulator::SetImplementation(), ns3::EmuNetDevice::SetMtu(), ns3::NscTcpL4Protocol::SetNscLibrary(), ns3::PointToPointNetDevice::SetPromiscReceiveCallback(), ns3::EmuNetDevice::SetPromiscReceiveCallback(), ns3::AttributeList::SetWithTid(), ns3::olsr::AgentImpl::Start(), ns3::SystemThreadImpl::Start(), ns3::EmuNetDevice::StartDevice(), ns3::TcpSocketImplTest::Test1_HandleRecv(), ns3::TcpSocketImplTest::Test2_HandleRecv(), ns3::TimeUnit< 1 >::TimeUnit(), ns3::SystemMutexPrivate::Unlock(), ns3::RandomVariableBase::UseGlobalSeed(), ns3::EmpiricalVariableImpl::Validate(), ns3::WifiMode::WifiMode(), and ns3::Timer::~Timer().

Generated on Thu Dec 3 14:09:08 2009 for NS-3 by  doxygen 1.6.3