Android Question How can you exclude code from debug mode?

Discussion in 'Android Questions' started by NeoTechni, Aug 31, 2016.

  1. NeoTechni

    NeoTechni Well-Known Member Licensed User

    I have some blocks of code that are too large for debug mode, as such I haven't ran debug mode in over a year. Is there a way to get debug mode to just skip them without commenting/uncommenting them on demand?

    EDIT: I tried commenting out the offending code and got

     
    Last edited: Aug 31, 2016
  2. Erel

    Erel Administrator Staff Member Licensed User

    Which error do you get with those code blocks?
     
  3. NeoTechni

    NeoTechni Well-Known Member Licensed User

     
  4. Erel

    Erel Administrator Staff Member Licensed User

    The best solution is to break those subs to several smaller subs. It will fix this issue and will be easier to maintain in the long run.

    You can compile some of the modules to a library and then use the library instead of the modules. However this can only work if the modules don't depend on other modules that are not included in the library.
     
    LucaMs likes this.
  5. LucaMs

    LucaMs Expert Licensed User

    "Divide et impera" (we can learn alot from the past; the problem is my memory :D)
     
    Cableguy likes this.
  6. NeoTechni

    NeoTechni Well-Known Member Licensed User

    Dang. Thank you.
     
Loading...
  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