Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "JSDT/Debug/Crossfire"

< JSDT‎ | Debug
m (fix broken link)
Line 4: Line 4:
  
 
== Overview ==
 
== Overview ==
Support for remote [http://getfirebug.com/wiki/index.php/Main_Page Firebug] using the [http://getfirebug.com/wiki/index.php/Crossfire_Protocol_Reference Crossfire protocol] is available in the JSDT development bundles and is provided to allow remote debugging of JavaScript using [http://getfirebug.com/wiki/index.php/Main_Page Firebug] via [http://getfirebug.com/wiki/index.php/Crossfire Crossfire].
+
Support for remote [https://github.com/firebug Firebug] using the [https://github.com/firebug-crossfire/crossfire/wiki/Crossfire%20Protocol%20Reference Crossfire protocol] is available in the JSDT development bundles and is provided to allow remote debugging of JavaScript using [https://github.com/firebug Firebug] via [https://github.com/firebug-crossfire/crossfire Crossfire].
  
 
The bundles provided by JSDT debug for the Firebug / Crossfire support include:
 
The bundles provided by JSDT debug for the Firebug / Crossfire support include:
Line 13: Line 13:
  
 
==== Create a Development Profile ====
 
==== Create a Development Profile ====
#Download your desired version of the source from http://fbug.googlecode.com/svn/
+
#Download your desired version of the source from https://github.com/firebug-crossfire/crossfire
 
#Create a Firefox profile.
 
#Create a Firefox profile.
 
#Start Firefox with the following argument ''-ProfileManager'' - the profile manager will open up allowing you to select or create a profile
 
#Start Firefox with the following argument ''-ProfileManager'' - the profile manager will open up allowing you to select or create a profile
Line 23: Line 23:
 
==== Finding Extension IDs ====
 
==== Finding Extension IDs ====
 
The next step requires you to find the ids of the extensions we want to load from source. To do so we have to look in the ''install.rdf''
 
The next step requires you to find the ids of the extensions we want to load from source. To do so we have to look in the ''install.rdf''
files for each of the extensions. The ''install.rdf'' file is located in the root of the extension source, for example [http://fbug.googlecode.com/svn/branches/firebug1.6/install.rdf] is the ''install.rdf'' for the 1.6 branch of Firebug.
+
files for each of the extensions. The ''install.rdf'' file is located in the root of the extension source, for example [https://github.com/firebug/firebug/blob/master/extension/install.rdf] is the ''install.rdf'' for the master branch of Firebug.
  
 
To collect the ID, open the ''install.rdf'' file in the directory of the extension you want to install (root, firebug, crossfire)
 
To collect the ID, open the ''install.rdf'' file in the directory of the extension you want to install (root, firebug, crossfire)
Line 54: Line 54:
  
 
To build the ''xpi'' file from source there are only two steps:
 
To build the ''xpi'' file from source there are only two steps:
#grab the source you want to package the ''xpi'' from - for example the [http://code.google.com/p/fbug/source/browse/extensions/crossfire/branches/0.3/ 0.3 branch]
+
#grab the source you want to package the ''xpi'' from - for example the [https://github.com/firebug-crossfire/crossfire master branch]
#run the handy Ant build file included in the Crossfire ''/firefox/'' folder - for example in the 0.3 branch it can be found  [http://code.google.com/p/fbug/source/browse/extensions/crossfire/branches/0.3/firefox/build.xml here]
+
#run the handy Ant build file included in the Crossfire ''/firefox/'' folder - for example in the 0.3 branch it can be found  [https://github.com/firebug-crossfire/crossfire/blob/master/build.xml here]
 
**Depending on how you check out the source for Crossfire you would need to edit the build file to make sure the referenced paths are correct.
 
**Depending on how you check out the source for Crossfire you would need to edit the build file to make sure the referenced paths are correct.
  
 
If you are feeling really ambitious ''and'' working in Eclipse, you can configure an external tool builder to automatically build the ''xpi'' file for you as you make changes / save you work. More information about configuring external tool builders can be found [http://wiki.eclipse.org/FAQ_How_do_I_create_an_external_tool_builder%3F here] and [http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2FgettingStarted%2Fqs-92_project_builders.htm here].
 
If you are feeling really ambitious ''and'' working in Eclipse, you can configure an external tool builder to automatically build the ''xpi'' file for you as you make changes / save you work. More information about configuring external tool builders can be found [http://wiki.eclipse.org/FAQ_How_do_I_create_an_external_tool_builder%3F here] and [http://help.eclipse.org/indigo/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2FgettingStarted%2Fqs-92_project_builders.htm here].

Revision as of 12:00, 18 May 2012

JSDT Debug
Website
Download
Community
Mailing ListForumsIRCmattermost
Issues
OpenHelp WantedBug Day
Contribute
Browse SourceProject Set File
Warning2.png
Experimental Project
The JSDT Crossfire project is in the experimental phase and is not part of any official release. To test the support you must build the bundle from source and use the latest source code for Firebug / Crossfire


Overview

Support for remote Firebug using the Crossfire protocol is available in the JSDT development bundles and is provided to allow remote debugging of JavaScript using Firebug via Crossfire.

The bundles provided by JSDT debug for the Firebug / Crossfire support include:

Setting up a Crossfire Development Workspace

Create a Development Profile

  1. Download your desired version of the source from https://github.com/firebug-crossfire/crossfire
  2. Create a Firefox profile.
  3. Start Firefox with the following argument -ProfileManager - the profile manager will open up allowing you to select or create a profile
  4. Create a new profile, make a note of the location that profile information will be stored in

Once done you should have a new profile with your chosen name in your Mozilla directory. For example, in Linux the following directory is created: /home//.mozilla/firefox/ and in Windows 7: <user root>\AppData\Local\Mozilla\Firefox\Profiles. More information on profiles can be found at Mozillazine.

Finding Extension IDs

The next step requires you to find the ids of the extensions we want to load from source. To do so we have to look in the install.rdf files for each of the extensions. The install.rdf file is located in the root of the extension source, for example [1] is the install.rdf for the master branch of Firebug.

To collect the ID, open the install.rdf file in the directory of the extension you want to install (root, firebug, crossfire) and look for the ID in the section:

<Description about="urn:mozilla:install-manifest">
<em:id>crossfire@almaden.ibm.com</em:id>
<em:name>Crossfire</em:name

Create an Extension Link

Remembering the location of your new development profile, and with the ids of the extensions we want to be installed, we now must create link files to tell Firefox where to find your extensions.

We can do this as follows:

  1. Open your profile directory, for example /home//.mozilla/firefox/h34h5.dev
  2. Open the extensions subdirectory (create it if it doesn't exist), for example /home//.mozilla/firefox/h34h5.dev/extensions
  3. Create a new file named using the extension id (eg: "crossfire@almaden.ibm.com"). Don't add any file extension.
  4. Inside the file put a single line containing the absolute path to your source extension

Finish Up

  1. Start Firefox with your new development profile and ensure your extensions have been installed properly.
  2. Start firefox with either -ProfileManager (and select your profile) or with -P
  3. Check the "add-ons" menu to see if your extension installed correctly

Building the Crossfire XPI

To install the Crossfire extension into Firefox you have two choices:

  1. grab the pre-built xpi file from getfirebug.com
  2. build it from the source and use the File > Open... command within Firefox to open the xpi file

To build the xpi file from source there are only two steps:

  1. grab the source you want to package the xpi from - for example the master branch
  2. run the handy Ant build file included in the Crossfire /firefox/ folder - for example in the 0.3 branch it can be found here
    • Depending on how you check out the source for Crossfire you would need to edit the build file to make sure the referenced paths are correct.

If you are feeling really ambitious and working in Eclipse, you can configure an external tool builder to automatically build the xpi file for you as you make changes / save you work. More information about configuring external tool builders can be found here and here.

Copyright © Eclipse Foundation, Inc. All Rights Reserved.