Search

What the Quote?

"So, you're implying that T.J. Hooker was William Shatner's 'Workplace'?"

Tim Tripcony

"Some web developer is SO proud of this, and it is pretty brilliant... except that IT SUCKS."

Nathan T Freeman

"You'll be just below the Bible Belt. So, anatomically speaking..."

Greg Rotz

« Medusa is coming... | Main| unsung hero: @CheckFormulaSyntax »

happy Friday... here's yer debugger

Category xpages
Medusa 0.7 has been released. The release package includes detailed installation instructions. Here's a brief list of features the plugin contains:
  • Server-side DOM Tree: similar to the HTML inspection of the base Firebug plugin, Medusa allows you to navigate the structure of the XPage as it exists in memory on the server. Clicking any node in the tree displays a ridiculous amount of property information for the corresponding control; if the control has an equivalent client-side HTML element, and that element can be located on the page, Medusa will highlight that element in the page.
  • Log Console: gone are the days of having to settle for print() and _dump() to send debugging information to the server console / log. Medusa includes a method for collecting error reports and purely informational debug statements for the active page... so the debug data you're viewing is not only limited to your session, it's specific to the page you're viewing. Say goodbye to filling up the server log with stack traces and fighting with coworkers over whose debug statements are whose.
  • Command Line: issue SSJS or EL commands within Firebug to be executed in the context of the open page. And not just the context of the page... if you've selected a control node in the DOM tree, the command will be executed in the scope of that control. For example, if you have a label with a "value" attribute (display text) of "First Name:", select that label in Medusa's DOM panel, and execute the following SSJS:

    this.setValue("Given Name:");

    When you click "Send", Medusa will execute the command, trigger a partial refresh specific to that control, and you'll see the label's display text change. Just as the core Firebug feature set allows you to tweak the client-side rendering of a web page to determine what your server-side code should be, Medusa's command line actually allows you to tweak the server-side page structure until it looks/behaves the way you want, drastically reducing development time.

If you develop with XPages, you need this. That's why we wrote Medusa, and now we release her into the wild to see what she will become.

Comments

Gravatar Image1 - This is way cool. Tell your boss to give you a raise. :D

Gravatar Image2 - Great work!

Gravatar Image3 - Thanks, Tommy!

Rob, he'd have to give himself one as well: he wrote the majority of the server-side code... though I'm willing to admit that the Firebug stuff was all me. Emoticon

Gravatar Image4 - Of course, the server-side Java code was the easy part. It's the Firebug stuff that's totally mystifying. Fortunately, I had a great IDE for it. I searched Google for sample code and then just Sametime'd Timmy with URLs. Somehow, that resulted in .XPI files showing up in my inbox.

Best. IDE. Evar.

Gravatar Image5 - I suspect that that IDE costs alittle more than Eclipse Emoticon

Thanks for the cool tool guys. Now get to work on the next one.

Gravatar Image6 - Thanks for this tutorial. It's just what I was looking forEmoticon

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)

Contact Me

Elsewhere

Assorted Linkage


Locations of visitors to this page