Thanks you Stefen.
Actually I could dispense with the startTrace/stopTrace mechanism!
For newcomers, here is how to fully debug mobile applications:
1/ Open three tabs in your browser in this order:
Tab1: http://localhost:8080/Your_app/Trace/All
Tab2: http://localhost:8080/Your_app/mobile.html
Tab3: http://localhost:8080/Your_app/Trace/Reset
It is advised to bookmark these tabs for repeated use.
Tab1 opens a trace file
Your_workspace_path/Your_app/work/trace/http-8080-exec-8 xxxxxxxxxxxxxx
where xxxxxxxxxxxxxx is some time stamp. The browser window must then display
Tab2 launches the app: do whatever you need then, it will be recorded in the trace file.
Tab3 closes the trace file. The browser window must then display
2/ Return to Tersus Studio
Open the Debug perspective, eg. through menu
Window > Open Perspective > Other... > Debug > OK
Open the Runtime Trace View tab, eg. through menu
Window > Show View > Other > Tersus/Runtime Trace View > OK
Open the trace file, eg. through the 3rd button (from the left) in the right toolbar of the tab. This is the button depicted above in Stefen's answer.
3/ In the Description column of the tab, a tree of actions is displayed, resuming the complete workfolw of the application.
Open this tree with +/-, and select a specific tree entry to inspect the current model or control involved at the current action.
4/ Remark: if you only wish to debug a specific action, you must resort to the the startTrace/stopTrace mechanism. In this case:
- do not open Tab1
- open Tab2 and run the app to the point where the specific action must begin
- type javascriptstartTrace() in Tab2 address bar (do not press enter), insert a column so that the URL reads javascript:startTrace() , then press enter. Note that the URL should then return to was it was before typing javascriptstartTrace().
- perform the specific action
- type javascriptstopTrace() in Tab2 address bar (do not press enter), insert a column so that the URL reads javascript:stopTrace() , then press enter. Note that the URL should then return to was it was before typing javascriptstopTrace()
- a trace file Startup-xxxx-xx-xxxxxx has then be created, with xxxx-xx-xxxxxx some time stamp
- do not open Tab3
- follow steps 2/ and 3/ above.
Note that the column trick is not required with Firefox, and that for repeated use the correct javascript URL are stored in the browser's history and the adress bar drop-down list.
Hope this helps.
Fabrice
To use the full functionality of this web site, JavaScript needs to be turned on.
For best results, use the Firefox browser..
Copyright © 2003-2017 - Tersus Software Ltd., All rights reserved. Terms of Use License Graphic design by EmaraDesign