Re: How to debug javascript in Plone 5 ?

Nathan Van Gheem <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <CAL8hw9GdR_6m7MWLSKA4Dw=SnA+50oL1ZVnMdgRu-wpun8saQg@mail.gmail.com>
What do you mean by prevent cooking?

If you want to explore/debug the structure pattern, here are your steps:

- go to resource registries control panel
- activate debug mode
- enable debugging the "plone-logged-in" bundle
- click save

Now javascript for the plone-logged-in bundle(where the structure pattern
is included) will not use the compiled javascript.

Now you can edit the mockup package resources and the changes will take
immediately.

Other things to look at:

-
https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/static/plone-logged-in.js
is the bundle file which specifies which patterns it is including
- https://github.com/plone/mockup/tree/master/mockup/patterns/structure is
the structure pattern code

Let me know if you have any further questions.

On Fri, Sep 18, 2015 at 8:24 AM, Franz Gerhard Reinisch <[email protected]>
wrote:

> Are there any useful links or suggestions how to prevent “cooking “ of
> javascript in debug mode? I need to explore /debug  e.g.:
> mockup-pattern-structure. After hours of trial an googling im somewhat
> lost (plone 5 /current coredev …).
>
> Thanks in advance for any help.
>
> Franz
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Plone-developers mailing list
> Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/plone-developers
>
>


-- 
Nathan Van Gheem
Solutions Architect
Wildcard Corp

------------------------------------------------------------------------------

_______________________________________________
Plone-developers mailing list
Plone-developers-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/plone-developers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.