debug fig