Start in debug mode
Use these methods to run a web application in debug mode.
Configure the GAS
Configure the Genero Application Server to run in development mode with the
--development
flag. This enables debug mode for all launched
applications. See Configure the GBC development environment in the Genero Application Server User Guide.
Add to URL
Add the query string parameter debugmode=1
to the URL. For example:
http://localhost:6394/ua/r/HelloWorld?debugmode=1
Add the query string parameter debugmode=0
to the URL to execute
the application without debug mode. This can be useful when the GAS runs in development mode (with
the --development
flag), but you do not want the app running in debug mode.
Activate in browser
Type gbc.DebugService.activate()
in the browser JavaScript console.
The JavaScript console is provided by Web browsers as part of their developer tools. When activated, the application remains in debug mode until the browser is refreshed.
Running an application in debug mode may effect the behavior of the GBC in the browser. For
example, the prompt that is usually displayed when the user presses the browser's back button
(Are you sure you want to leave this page?
) is no longer displayed.