1. #1
    Ext JS Premium Member
    Join Date
    Dec 2010
    Posts
    15
    Vote Rating
    0
    karan is on a distinguished road

      0  

    Default Best way to debug XTemplates? Illuminations?

    Best way to debug XTemplates? Illuminations?


    I'm working with XTemplates and they are proving hard to debug, specially with the conditional operators etc. To give an example, I was trying something with the for construct and I kept getting non-helpful exceptions or in some cases it kept failing silently (nothing got printed). I'm sure the issue was with my code and I later worked around it with the switch construct.

    What is the best way to debug XTemplates? Can I see the generated code to help get some hints about where I may be going wrong? Will something like Illuminations help?

    Thanks
    -->

  2. #2
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,230
    Vote Rating
    114
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    The text of an XTemplate gets translated into a function, so the best way to see if that is what you had hoped is to step into the apply or applyOut method and then into the call to the "fn" method it has created.

    In Chrome, you can even pretty up the function code, but it is not too far from readable without assistance.

    Feel free to post an example of what you are trying to debug - someone may be able to point out issues on simple inspection.
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"
    -->

  3. #3
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,230
    Vote Rating
    114
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    I guess I should have clarified that the above is true on Ext JS 4.1 + but it sounds like that is what you are using from your mention of "switch".
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"
    -->

  4. #4
    Ext JS Premium Member
    Join Date
    Dec 2010
    Posts
    15
    Vote Rating
    0
    karan is on a distinguished road

      0  

    Default


    Thanks Don, I'll give it a try. Will reopen the thread if needed.
    -->

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar