Merge "add support for debug and profile contexts."