Setting preferences for the BlackBerry Smartphone Simulator


Set preferences for the BlackBerry Smartphone Simulator

  1. In Eclipse®, on the Window menu, click Preferences.
  2. In the left pane, expand BlackBerry WebWorks and click Services.
  3. In the right pane, under Simulator Preferences, perform any of the following tasks:
    Task Steps
    Specify the default simulator to use to debug BlackBerry® WebWorks™ applications.

    1. Under Default Simulator for WebWorks Debugging, click Select.
    2. Click the Show all simulators check box to display all the installed simulators.
    3. Select a simulator.
    4. Click OK.
    Specify the default simulator to use to debug web applications.

    1. Under Default Simulator for Web Debugging, click Select.
    2. Click the Show all simulators check box to display all the installed simulators.
    3. Select a simulator.
    4. Click OK.
    Display a confirmation dialog box before the BlackBerry® Smartphone Simulator restarts. Click the Ask before restarting simulator check box.
    Display a confirmation dialog before the BlackBerry Smartphone Simulator resets. Click the Ask before resetting simulator check box.
    Restore a debug session after a reset. Select the Restore current session after reset check box to restore the BlackBerry Smartphone Simulator to its state prior to the reset. The launch mode, either run or debug, and the URL from the current session are restored after the reset.
    Enable debugging of local JavaScript®files and HTML source files. Select the Allow source debugging for HTML and JS files check box. When this check box is cleared, remote debugging is also allowed for local source files.
    Enable support for JavaScript in the BlackBerry® Browser. Select the Prompt to turn on Browser JavaScript support when simulator starts check box to display a dialog box that prompts you to turn on JavaScript in the BlackBerry Browser.
    Display a message when the project is not associated with a running server. Click the Prompt when launched project is not found under any running server check box to display a dialog box that prompts you to type the port number to use when the application starts.
    Specify the BlackBerry MDS Connection Service folder. Under MDSCS Preferences, click Browse and navigate to the folder for the BlackBerry MDS Connection Service.

Reset the BlackBerry Smartphone Simulator

If the BlackBerry® Smartphone Simulator does not start, you can reset it by using the functionality that is available in Eclipse®.

  1. In Eclipse®, on the Window menu, click Show View > Other.
  2. Expand BlackBerry WebWorks and click Service Manager.
  3. In the Service Manager view, right-click BlackBerry Simulator. Click Reset BlackBerry Simulator.
  4. Click Reset.

Turn on support for JavaScript in the BlackBerry Browser

  1. In the BlackBerry® Browser in the BlackBerry® Smartphone Simulator, press the Menu key.
  2. Click Options.
  3. Click Browser Configuration.
  4. Select the Support JavaScript check box.
  5. Select the Allow JavaScript popups check box.
  6. Press the Menu key.
  7. Click Save Options.
This entry was posted in BlackBerry. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s