On 02/02/16 09:47, stepharo wrote:
Hi guys
I hate so much this bad configuration interface of seaside.
I lose all the time 20 min to find how to set the debugger.
So I have to do a presentation and I cannot show the debugger.
What a great wonderful experience.
How can I configure seaside to get the debugger?
We've added some convenience methods for this, making it easy to deploy
both production and development, and making it possible to make the
application the default application.
QCApplication class>registerAt: anApplicationName
^(WAAdmin register: self asApplicationAt: anApplicationName)
preferenceAt: #sessionClass put: self sessionClass;
addLibrary: JQDeploymentLibrary;
addLibrary: JQUiDeploymentLibrary;
yourself
QCApplication class>registerForDevelopmentAt: anApplicationName
| application |
WAAdmin enableDevelopmentTools.
application := self registerAt: anApplicationName.
application filter configuration at: #exceptionHandler put:
WADebugErrorHandler.
(self overridesDefaults includes: WAAdmin defaultDispatcher defaultName)
ifTrue: [ WAAdmin defaultDispatcher defaultName:
anApplicationName ].
^application
QCApplication class>registerForProductionAt: anApplicationName
| application |
application := self registerAt: anApplicationName.
WAAdmin disableDevelopmentTools.
WAAdmin defaultDispatcher defaultName: anApplicationName.
^application