This extension is targeted for Komodo extension developers.
The Venkman JavaScript debugger can be used to debug Komodo JavaScript code, including Komodo extensions. More information on Venkman is available here:
http://www.mozilla.org/projects/venkman/
Once installed, use the "Tools->JavaScript Debugger" menu to launch the debugger.
Big thanks for "official" support of Komodo Edit by Venkman debugger - it's something what I really enjoy.
Any hints how to debug macros I want to create with Venkman?
I tested this by putting this line at the start of a macro:
debugger;
When I ran the macro, with Venkman launched, it stopped
in peMacro.js at line 683. Unfortunately Venkman doesn't
handle eval'ed code well (
https://bugzilla.mozilla.org/show_bug.cgi?id=332176 ) -
it steps through the eval'ed code as if was located
in the code where the eval was called from.
I prefer debugging my macros by using the Javascript Shell,
available in a Komodo-compatible version at
http://community.activestate.com/node/1824
I typically use it in two ways:
1. Type in each line of code (or copy and paste), and check
the results. This is harder for testing loops, obviously,
but works for me.
2. When I'm working with callbacks, in particular event objects,
I'll save the event argument in an undeclared global, like so:
function onclick(event) {
gEvent = event;
...
}
and then interrogate gEvent in the shell.
- Eric