On Mon, Mar 21, 2011 at 06:39, Luc Saffre <[email protected]> wrote:
> Uff! Here is the answer! And a new (much easier) question.
>
> There was an exception thrown during my self-written cell renderer. I
> didn't even include the code of this class because I didn't expect that
> kind of surprise (so I admit that you had no chance to find it).
>
...
> The problem is that I call `qx.bom.String.escape` possibly with a null
> value. Changing the line
>
> return qx.bom.String.escape(s); /** here it is **/
>
> into
>
> if (s) return qx.bom.String.escape(s);
>
> did solve my problem.
>
> And my new question is: how is it possible that I didn't get any
> notification of that exception? I guess it is because I use the built
> and not the source version? Is that correct?
>
> My lesson from this story: don't use the built version for debugging.
You are correct that it is much easier to debug with the source version than
with the build version. For those rare times that you _must_ debug with the
build version, in the "let" section of your config.json file, set
OPTIMIZE : [ ]
to turn off all optimization, so at least the code is readable. That won't
add back in all of the debugging code, though. That's done through a change
of "settings" which I don't recall off hand how to do.
In your case, though, the problem would almost certainly have been detected
by a decent debugger. Although I prefer Chrome for all normal use, I use
Firefox with the Firebug debugger for all qooxdoo debugging, as I find it
much easier to use than Chrome's debugger, and does a great job of catching
this sort of error. I would have stopped at the errant line, and you could
then have seen that the parameter to qx.bom.String.escape was null, and
looked at the stack trace to see where it had been called from. Developing
medium and large size applications without a good debugger is, in my
opinion, a huge waste of time.
Cheers,
Derrell
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel