Wish Debug/relase mode

Discussion in 'B4R Bugs & Wishlist' started by tigrot, May 9, 2018.

  1. tigrot

    tigrot Well-Known Member Licensed User

    Hi everybody,

    I'd like the chance to not compile log instructions. Or better to have two log instructions. One never compiled in release mode and one compiled as well.
    To debug my apps i use lot of log statements, so it's a problem to comment them all and avoid to damnage it.
    Nice day
  2. Erel

    Erel Administrator Staff Member Licensed User

    There is no debug mode in B4R. However you can create your own "debug mode" with another build configuration and then use:
    Sub Log2(s() As Byte)
    #if MyDebug
    #end if
    End Sub
    tigrot likes this.
  3. tigrot

    tigrot Well-Known Member Licensed User

    It's good tip. Let me try this solution. Erel= the best!
  4. tigrot

    tigrot Well-Known Member Licensed User

    This solves the output of the log statement, but the call to log is still present and log string as well along with the needed code for generation. Why not thinking about this feature
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice