setconstant debug.setconstant(fn: function, index: number, value: any): () Replaces a constant, changing what the function does without rewriting it.