on 02-15-2013 10:42 AM
I want to set breakpoint (for example in custom.js) and run hwc on device . Is there solution to make this?
With weinre I can not set breakpoints(
Hi Pavlo,
To test your application by keeping break point in custom.js, keep alert statement in the code as follows,
alert("HI");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Okay....
keep alert statement in which step you wish to check (i.e) In custom.js give alert statement as follows:
alert(variable name);
note: variable name should be given without quotes
Ex:
In the above code, alert("imagedata"); will display as imagedata....... alert(imagedata); will show you the data in imagedata variable
Yes there is a way to set break points and execute line by line as mentioned in the below link:
Which device platform are you using? On iOS, please see comments in Daniel Van Leeuwen's link above. https://cw.sdn.sap.com/cw/docs/DOC-150957
For Android, although Android 4.4 is not officially supported yet, you can achieve the same line by line on-device/simulator debugging as iOS using Android 4.4 simulator. https://developers.google.com/chrome-developer-tools/docs/remote-debugging#debugging-webviews
Thanks,
Andrew.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please refer following link:
Android Hybrid Web Container debug with Weinre - YouTube
Thanks
Ashish Baghel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a sample that demonstrates different ways to debug your mobile worklow/hybrid app including step by step debugging.
Debugging a Mobile Workflow https://cw.sdn.sap.com/cw/docs/DOC-150957
Hope that helps,
Dan van Leeuwen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried also use firebuglite on device . There are all .js files. But I can not set breakpoint(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.