Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.
Tung edited this page Nov 1, 2022 · 2 revisions

Welcome to the Blooket-stuffs wiki!

How to debug function

To find some hack (like swap,...), you need to find it's set value and things. So you can do it by patch the function and force it log value.

Example

if(!typeof oldsv){
    const oldsv = getStateNode().props.liveGameController.setVal;
}
getStateNode().props.liveGameController.setVal = function(){
    //do somethings with arguments
    return oldsv.apply(this, arguments)
}