Forum Discussion

Marcel_Derksen_'s avatar
Marcel_Derksen_
Icon for Nimbostratus rankNimbostratus
Apr 10, 2006

Debugging iRules

Can anybody tell if there is a general way of debugging irules? I want to debug my current iRule without having to add log local0. commands all over the iRule.

 

Marcel.

1 Reply

  • adding logging is the easiest way I know to debug the rules. I usually set a debug variable, then all my log statements are:

     

     

    if { $debug } {

     

    log "log statement"

     

    }

     

     

    That way I can leave the debugging code there when I don't need it.