Debug the
Hybrid App
package
HTML
and
JavaScript
files using a Windows desktop browser.
This procedure uses Google Chrome as an example, but you can use any browser that supports JavaScript debugging.
Change the tracing level of
Hybrid App
to Debug.
Open the browser to use for debugging and open the Java Console.
If you are using Chrome:
Add
this
command line option to the shortcut used to start Chrome:
..\chrome.exe" --allow-file-access-from-files
You can debug a client-initiated
Hybrid App
up until the point where a menu item of the
Submit
type is performed. If the menu item action is an Online Request, place the
XMLWidgetMessage (available in the WorkflowClient trace log located in
<UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\UnwiredServer\logs\WorkflowClient)
that is the expected response message into an rmi.xml file and
place it at the same level as the generated
hybridapp.html
file.
Note: Control characters are not parsed correctly when using
rmi.xml and Chrome to debug the
Hybrid App.
Do not format the content of the rmi.xml when debugging the
Hybrid App
using Chrome. If you want a formatted look at the rmi.xml
file, make a copy of the file for that purpose.
From WorkSpace Navigator, drag and drop the
hybridapp.html
file for the
Hybrid App
to debug onto the browser window.
Find the name of the key to debug:
In Flow Design, click the screen to debug.
In the Properties view, click General in the left pane.
The key name is shown, in this example, that is TravelRequest_create.
In the URL, add the ?screenToShow=<Screen_name> parameter to the end of the URL, for example:
To simulate an e-mail message triggered
Hybrid App:
Create a file called transform.xml and place the contents of the XMLWidgetMessage into it.
The contents of the XMLWidgetMessage are in the WorkflowClient trace log in <UnwiredPlatform_InstallDir>\UnwiredPlatform\Servers\UnwiredServer\logs\WorkflowClient).
To provide data to the
Hybrid App
you are debugging, place the transform.xml file at the
same level as the generated
hybridapp.html
file (Generated
Hybrid
App\<Hybrid_App_name>\html).
Add a ?loadtransformdata=true parameter to
load the data into the
Hybrid App.
Configuring Messaging Server Log Settings
Messaging Server logs create trace configurations for messaging modules, and retrieve trace data for all or specific messages. Configure trace configuration properties for modules to specify the amount of detail that is written to the log. You can configure trace settings for the primary server cluster in Sybase Control Center for each module. The settings are available to cluster servers through the shared data folder.