Pixar Arch 0.25.8
Loading...
Searching...
No Matches
debugger.h File Reference

Routines for interacting with a debugger. More...

#include "pxr/arch/pxr.h"
#include "pxr/arch/api.h"
#include "pxr/arch/attributes.h"

Go to the source code of this file.

Namespaces

namespace  pxr

Macros

#define ARCH_DEBUGGER_TRAP   do { ARCH_NS::ArchDebuggerTrap(); } while (0)
 Stop in the debugger.

Functions

void pxr::ArchDebuggerTrap () ARCH_NOINLINE
 Stop in a debugger.
void pxr::ArchDebuggerWait (bool wait)
 Cause debug traps to wait for the debugger or not.
bool pxr::ArchDebuggerAttach () ARCH_NOINLINE
 Attach a debugger.
bool pxr::ArchDebuggerIsAttached () ARCH_NOINLINE
 Test if a debugger is attached.
void pxr::ArchAbort (bool logging=true)
 Abort.

Detailed Description

Routines for interacting with a debugger.

Macro Definition Documentation

◆ ARCH_DEBUGGER_TRAP

#define ARCH_DEBUGGER_TRAP   do { ARCH_NS::ArchDebuggerTrap(); } while (0)

Stop in the debugger.

This macro expands to ArchDebuggerTrap() and, if necessary and possible, code to prevent optimization so the caller appears in the debugger's stack trace. The calling functions should also use the ARCH_NOINLINE function attribute.