Page 1 of 1
debug output in flex
Posted: Thu Mar 25, 2010 7:32 am
by Dennis
Hi,
I'm making changes to the flex admin site to reflect my datamodel of my new site.
I'm new to flex, but I figured a lot out myself. However, I do not have any idea how the logging work.
There are 'trace(' statements throughout the code, but where are they logged? In a file? In the console? Can I turn it on/off?
How does this work?
thnx. Dennis
Re: debug output in flex
Posted: Thu Mar 25, 2010 8:20 am
by bradford.taylor
The most common way to view these is to run the Flex app in debug mode in Eclipse using the Flex Plug-in. The trace statements will be outputted to the console.
It is possible to debug Flex apps without the Eclipse Plug-in using
fdb command found in the SDK. I don't know how well it works because I have always used the Eclipse Plug-in. You will need to enable debugging in the compile options for Flex.
Whenever a Flex app is compiled it uses a Flex config xml file as for the configuration for how it's compiled. By default it uses the frameworks/flex-config.xml in the Flex SDK directory if you are compiling using maven from the command line. I would have to check the file but my recollection is that by default debugging is not enabled. To enable debugging uncomment the <debug>true</debug> near the begining of the file. Note that whenever the Eclipse plug-in compiles a Flex application a different configuration is used with debugging turned on.
Re: debug output in flex
Posted: Mon Jan 26, 2015 4:18 am
by robert000
I add annotation onto this field without change SkuImpl? I tried to re-inject another SkuExtImpl class to the site and admin, but it doesn't work; the ProductImpl only looks for SkuImpl.
Re: debug output in flex
Posted: Tue Jan 27, 2015 12:33 am
by phillipuniverse
@robert add this to applicationContext-entity.xml:
<bean id="org.broadleafcommerce.core.catalog.domain.Sku" class="com.yourcompany.catalog.SkuExtImpl" />