Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363399

Summary: Breakpoints are not synch'ed from Firebug to Eclipse
Product: [WebTools] JSDT Reporter: Leopoldo (Polo) Miranda <polomm>
Component: DebugAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact: Michael Rennie <Michael_Rennie>
Severity: normal    
Priority: P3 CC: itewksbu, thatnitind
Version: 3.2.5   
Target Milestone: 3.4 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 375435, 375652, 375660, 375662, 375664    
Attachments:
Description Flags
patch none

Description Leopoldo (Polo) Miranda CLA 2011-11-09 17:34:55 EST
1. Create a simple static web project, that contains the following:
- A JS file/function that has five lines of code for example:

    console.log('Msg 1');
    console.log('Msg 2');
    console.log('Msg 3');
    console.log('Msg 4');
    console.log('Msg 5');

- An HTML that contains a button with onClick event to call the JS function
above.
2. Deploy your web project in any web container.
3. Open the URL for the html page in Firefox (Firebug up and running and
Crossfire   already listening)
4. In Eclipse create a new Remote JavaScript configuration as follow:
- In Connect tab, select "Crossfire - Remote Attach" and leave all defaults
- In the Source tab, delete the Default "Source Lookup Path" and add your
sample project (or workspace) instead.
5. Start to "Debug"
6. Go to Firebug, and select the script tab and set a break in the first
console message.
7. Click in the button so then your JS breakpoint is reached.
8. Accept the Eclipse notification to go to debug mode (if not there already)
9. Go back to Firebug and set breakpoints to the following lines

    console.log('Msg 3');
    console.log('Msg 4');


Current Result:

Breakpoints from firebug are not synch'ed with Eclipse.


Expected Result:

As a users I want to have both, Eclipse and firebug fully synch'ed at any time.


Firefox versions either 6 or 7
Firebug 1.8.3
Crossfire 0.3a9
Comment 1 Michael Rennie CLA 2012-03-23 12:27:49 EDT
Created attachment 213111 [details]
patch

This patch provides all the hooks for Eclipse to respond to breakpoint toggling in Firebug.
Comment 2 Michael Rennie CLA 2012-03-23 12:28:38 EDT
Applied patch to HEAD