Use lambda for debug_slider instead.