cancel
Showing results for 
Search instead for 
Did you mean: 

Debug HWC

Former Member
0 Kudos

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(

Accepted Solutions (1)

Accepted Solutions (1)

GowthamRaja
Participant
0 Kudos

Hi Pavlo,

To test your application by keeping break point in custom.js, keep alert statement in the code as follows,

alert("HI");

Former Member
0 Kudos

I want to see data in variables and debug step by step.

I put alert in custom.js and it gives me nothing(

GowthamRaja
Participant
0 Kudos

Hi Pavlo,

correct me if i am wrong:

Are you need to see the variables having the data or not?

Former Member
0 Kudos

I need to see what data is in variables and debug step by step.

GowthamRaja
Participant
0 Kudos

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

Former Member
0 Kudos

Thank, I understand.

How about another question : Debug step by step?

GowthamRaja
Participant
0 Kudos

is this you want? your problem solved?

Former Member
0 Kudos

partitially solved.

Is there possibility to put break point on some line. And when this line of code will be executed Program will stay there. And by pressing f10 (for example) go to next line of code.(as simple debugger)

Thank in advance)

GowthamRaja
Participant
0 Kudos

Yes there is a way to set break points and execute line by line as mentioned in the below link:

http://www.eclipse.org/atf/flash/index4.php

Answers (4)

Answers (4)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Please refer following link:

Android Hybrid Web Container debug with Weinre - YouTube

Thanks

Ashish Baghel

Dan_vL
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

Former Member
0 Kudos

I tried also use firebuglite on device . There are all .js files. But I can not set breakpoint(