API: set the proper z-index for debugging marks.