Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member

Hi Guys ,

I faced some problems while debugging using Weinre , here are my some learning documented.

Goto to the directory->C:\Program Files (x86)\Java\jdk1.6.0_17\bin   weinre.jar file is under this folder

1.png

2.png

You should get following screen :

3.png

Goto different machine , either test on safari or chrome, safari is preferred,please put the ip of machine where weinre is installed:

4.png

Goto custom.js , and add following code,be sure that parenthesis are closed properly for every function in custom.js or you will see the error customBeforeworkflow load is not defined:

5.png

Deploy the project and generate it .

For BB you have to put code file under the path->C:\Program Files (x86)\Research In Motion\BlackBerry JDE 5.0.0\simulator

For Iphone you need to get the folder Workflow :

  1. 1. On your Mac, connect to the Microsoft Windows machine where Sybase Unwired Platform is installed:
  2. a. In the Apple menu, click Go > Connect to Server.
  3. b. Enter the name or IP address of the machine.

For example, smb://<machine DNS name or smb://IP Address.

  1. 2. Copy the MobileWorkflow<version>.tar.gz archive from <UnwiredPlatform_InstallDir>\UnwiredPlatform\ClientAPI\Workflow\ios\to a location on your Mac.

In the archive file name, <version> is the current Unwired Platform version number. For example, MobileWorkflow-2.1.0.tar.gz.

  1. 3. Unpack MobileWorkflow<version>.tar.gz.

The extraction creates a Workflow directory.

  1. 4. In the Workflow directory, double-click WorkFlow.xcodeproj to open it in the XCode IDE.
  2. 5. If necessary, select Project > Edit Active Target > ProjectName > General to add the following frameworks from the SDK to the project:
  • Security.framework
  • AddressBook.framework
  • QuartzCore.framework
  • CoreFoundation.framework
  • libicucore.A.dylib
  • libz.1.2.3.dylib
  • libstdc++.dylib
  1. In XCode, select Build > Build to build the project.

Log on to Sybase Control Center using URL:https://ip:8283username:supAdminpassword:s3pAdminGoto:6.pngClick on Register:7.pngGive the same setting on the Device.The device will be shown online:8.pngNow you can do the testing..Check the prerequisites:Platforms not supported

  • iOS 3.1.3 or earlier
  • webOS 1.45 or earlier

  Libraries not supported

  • versions of Prototype.js before version 1.7 are not supported, as they do not support the JSON.stringify() API correctly. You will get an alert() in the web page you are debugging if you attempt to debug it with weinre and you are using an unsupported version of Prototype.js.

Platforms supported - debug clientThe browser where the debugger user interface runs.

  • weinre Mac application - Mac OS X 10.6 64-bit
  • Google Chrome 8.x
  • Apple Safari 5.x

  Platforms supported - debug target The browser with the page you are debugging.

  • Android 2.2 Browser application
  • Android 2.2 w/PhoneGap 0.9.2
  • iOS 4.2.x Mobile Safari application
  • BlackBerry v6.x simulator
  • webOS 2.x (unspecified version)

You have to goto:

First DeployeeOur project

First link for debug test.

9.png

After connection we will show device online and we can debug.

10.png

The highlighted url will be in debbuging mode.

2 Comments
Labels in this area