



I would like to debug with Komodo 4 some javascript.
I know that it is possible to use firefox extensions in Xulrunner wich embeds gecko.
Do you have a sample Xulrunner application wich has Komodo javascript debugger enabled?
It would make Komodo the best tool for Xul and Xulrunner applications !
Right now, the JavaScript debugger only works with Firefox, but it is something we would like to look into further. No ETA right now.
By the way, I tried to make it work with firefox but was unsuccessfull.
I checked with tcpdump that it connects to Komodo and has a dialog.
But it does not activate at any moment.
Do you have specific Firefox versions that works for sure on linux with
Komodo IDE, version 4.3.2, build 17463, platform linux-libcpp6-x86.
Once I make it work from firefox, I wil ltry to make it work from Xulrunner myself.
This was with Komodo 4.3.2 build 17463, platform linux-libcpp6-x86
on a Fedora Core 6 distro.
It didn't work the first time, so I uninstalled the debugger, and
reinstalled from Komodo. I also started firefox from a terminal
window with the -console option to see if there were any messages
beyond those written to the Error Console, and it ran fine. Then
after starting Firefox as usual from an icon, the debugger connected.
At the start of the connection, there was a dialog asking if I wanted
to map the URL of the site I was debugging to a local file. The problem
is that this dialog was hidden below the firefox window, so I had to
move firefox out of the way to see it. Once I canceled it, the debugger
session proceeded as usual.
You'll need to unzip the jsdbgr and jslib XPIs to modify the install.rdf
to allow installing the debugger in your own app. The debugger also
filters out almost all chrome URIs, to focus on the user scripts --
it will only stop in chrome URIs if you started in one, and then it will
only step into the initial URI and any other URIs that contain the starting
URI in their own URI. This is to avoid stepping into Firefox code.
The issue with this decision is that while you should be able to install
this debugger in other XUL applications (you'll also need to modify the
startup code in winger-static.js to allow that), it's geared to debugging
user-script JavaScript, not application JavaScript. For example, we
still can't debug Komodo's own JavaScript with this. But it is possible
by changing a small number of decision points in the filtering.
For the firefox debugging, I made it work from windows but not from slackware 12.
From slackware, i have the information komodo debugguer xpi not compatible with firefox 2.0.14 from the extension manager dialog.