Debug Code in Black Berry - blackberry

I want to debug my code in Black Berry mobile (8310).
I use Eclipse Editor for writing code.
Is it possible ?
Thanks.

Of course it is possible. Just select debug as > blackberry device. But your application may need code signing. If so you have to order signing keys from blackberry by filling order form.
Please read the BlackBerry Developer page on Code Signing Keys and the How and When to Sign guide from RIM.

Related

Viewing Console.log in ios simulator

Please excuse my silliness. I feel as this should be a simple problem. I am using phonegap to develop in IOS. I am wondering how come console.debug does not show up in the xcode console. How can I view any javascript error or exception in xcode console or anywhere? I am running on 4.3 IOS IPAD simulator. Thanks.
You can watch the console.log with a safari-browser. Open the ios-simulator or connect the ipad by usb. Open safari and take a look in the menu "developer". Choose your web-site and the web-inspector will open.
more info here:
https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/DebuggingSafarioniPhoneContent/DebuggingSafarioniPhoneContent.html
As far as I know, you cannot. I have solved this problem by using jsconsole.com. It allows you to output console message (and much more) by simply adding a script tag to your app.
NOTE: for debug use only.
Just to clarify the old answer from Fischel, here is the menu on a desktop Safari that allows you to connect development tools to simulators or devices.

Test a PhoneGap application on a real device

I built an application using Phonegap and I tested it on the iPhone Simulator.
Now I want to "send" it to the iPad, can somebody explain me how to handle that ?
Of course I've got an apple id and all others stuff...
I made the "provisioning profile" for the iPad, but I don't understood how I can run it on the device. If somebody can explain me or redirect me to a good tutorial for this kind of "testing development". Thanks in advance.
If you have an Apple ID and the ipad is properly provisioned, then you simply need to change where you are building to in xcode. Click on the button next to the "run" and "stop" buttons in xcode. The button will be the name of your project followed by "nameOfProject>iPad 4.3 Simulator" or something similar. Change this to be "iOS device name of ipad", the ipad you have plugged into the computer. Now rebuild and run.
A way to distribute application without asking user to copy provisioning profile and application file to iTunes and then sync iPhone with it. Now, only thing that they need to do is to click on the link in e-mail, which will open website on device and there they can click to install application and profile on the iPhone.
http://blog.amarkulo.com/ad-hoc-profiles-and-application-distribution-via-web
Other reference :
http://support.twixlmedia.com/kb/epublisher-builder-application/how-do-i-create-the-distribution-provisioning-profile-for-my-ad-hoc-build
use "run" instead of "emulate".
I've only used cordova but cordova run <osname> will install it on your device if it's plugged in.
ie:
cordova run ios (I refuse to pay 99$ so not tested but it should)
cordova run android (works beautifully)
Okay this is a bit of a shortcut/cheat. But what i've done was do phonegap serve and then open the IP address that it provides you on my Iphone...It's pretty much the same as having it run on your device as an APK!
Step One:
cd to your directory and run phonegap serve
Step two:
On your Iphone/Android/Device open your web-browser (e.g safari) and type in the IP phonegap has given you.
Step three:
Have fun seeing your app work :)
However if you're using some of phonegaps features (gps, etc...) then these won't work. This solution is a quick and easy way of viewing your app that doesn't use any hardware controls (e.g a jquery mobile app)

Dreamweaver CS5.5. iOS - code signing/ipa

In Dreamweaver CS5.5. where (assuming here you do this in Dreamweaver) do you do the code signing, and where is the .ipa file for iOS development?
I see in the Build->Application Settings where you put in the bundle id, but that seems to allow you to put in whatever you want, seems odd, and unlike Xcode.
Can someone clarify this process or provide link(s) to resources? Thanks.

how to debug java app in blackberry

I am developing a bluetooth application for blackberry. I am getting some BluetoothStateException's whil running the app on the phone. I am wondering if there is any way to debug th application on the phone?
Thanks.
UDPATE: There is an option in JDE I found to debug on device, but it keeps asking me to install signing keys.But I have not used any BB API's AFAIK
You cant install a BB app on handset without signing it. Get a developer account on BlackBerry developer website, and you should be able to set up signing, it is almost trivial to do so.
You shouldn't have to sign if you haven't used the BlackBerry APIs that require signing keys. In particular, the basic UiApplication class and the BluetoothStateException don't require the keys.
Having said that, it sounds like you used a protected API in there somewhere (they're really all over the place, the PersistentStore for example, or the Display class in the system package). You can enable warnings within Eclipse for when you use protected APIs. Under Window->Preferences->BlackBerry Java Plug-In, check the Warnings sub-item and make sure all 3 checkboxes are unchecked. Then look at your Eclipse warnings/error view.
Also, I agree with #omermuhammed, it's really easy to get signing keys.

Blackberry RRT signing problem!

Gurus, I got the keys from RIM to sign my application, however, the signing tool won't sign the RRT, I'm succesfully signing the RCR but not the RRT so the application won't run on a device, I'm getting this error that speaks for it's self:
alt text http://www.techlocus.com/blackberry/problem.png
I'm using Eclipse with the plugin 1.1. JRE 5.0.0.
Any help would be appreciated, if you need more information please let me know
Thanks in advance!
RIM sends back your signing keys as three separate emails (RCR, RRT, and RBB) - make sure that you clicked on the attachment for all three of them to register them on your computer.

Resources