|
|
|
Re: Debugging using crossfire [message #813708 is a reply to message #812564] |
Mon, 05 March 2012 16:22 |
John Brinnand Messages: 5 Registered: March 2012 |
Junior Member |
|
|
So - the reason why things didn't work is that when creating a launch configuration, in eclipse, for remote javascript debugging, the debugger must not be attached to any one js or html file. Instead - create the launch configuration and start the debugger without associating it with any one file. My launch configuration is attached as eclipse-indigo-crossfire-attach.png. When attempting to attach to the crossfire server, it helps to switch to the debug mode. In this mode, you can see when the connection has been made. (See attached image: eclipse-debug-crossfire.png).
Once the connection to crossfire has been made, open the file (js, html) that is loaded into firefox, and set your breakpoints. To kickstart the whole thing, refresh your browser and after a small pause, context will switch to eclipse and you can step through your code in eclipse.
Of course this means that you have firefox with the latest firebug version and the latest crossfire version. (Sadly - I cannot add the links because of a forum rule about posting 25 msgs prior to adding links). Note that once installed you won't see the crossfire icon because it's cleverly hidden in the add-on bar at the bottom of the firefox. To open the add-on bar, go to View->Toolbars->Add-On Bar (see attached image firefox-open-addon-bar.png). Turn it on if it is not already on. The crossfire icon should appear in your add on bar (see attached image crossfire-icon.png). Clicking on this icon will open a dialog asking you to start the crossfire server. To validate the crossfire is running, open firebug (if you haven't already) and click on the Remote tab and you should see the crossfire icon with a message stating that it accepts connections(see attached crossfire-start-server.png image)
I hope this helps anyone trying to get this started.
Regards,
John
|
|
|
Powered by
FUDForum. Page generated in 0.01740 seconds