Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions docs/tutorials/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,27 @@ To link your own program against your OTIO build using gcc or clang, add the fol

To use opentime without opentimelineio, link with -lopentime instead, and compile with:
+ `c++ -c source.cpp -I/home/someone/cxx-otio-root/include`

# Debugging Quickstart

### Linux / GDB / LLDB

From your virtual environment, compile with debug flags:

+ `env OTIO_CXX_DEBUG_BUILD=1 python setup.py install`

You can then attach GDB to python and run your program:

+ `gdb --args python script_you_want_to_debug.py`

Or LLDB:

+ lldb -- python script_you_want_to_debug.py

One handy tip is that you can trigger a breakpoint in gdb by inserting a SIGINT:

#include <csignal>
...
std::raise(SIGINT);

GDB will automatically break when it hits the SIGINT line.