2007-09-24:
[4:15] <doublec> What's the usual workflow for developing helma apps? Do you run a local server, edit the application files and refresh the browser to see the changes?[7:49] <zumbrunn> doublec, in case you check the channel logs...[7:49] <zumbrunn> yes, basically, that's how it works[7:50] <zumbrunn> except that the server doesn't necessarily need to be local, of course[7:50] <zumbrunn> you start helma, you edit application files, and you immediately see the changes in the browser[7:50] <zumbrunn> (no need to restart, refresh or compile the app in anyway)[7:50] <zumbrunn> just the browser refresh[15:09] <hypersmil> http://helma.zumbrunn.net/reference/core/res.html#charset[15:09] <hypersmil> the link "list of supported encodings" is wrong / outdated[15:09] <hypersmil> ---[15:09] <hypersmil> i think it should be changed from[15:09] <hypersmil> http://java.sun.com/products/jdk/1.2/docs/guide/internat/encoding.doc.html[15:09] <hypersmil> to[15:09] <hypersmil> http://java.sun.com/javase/6/docs/technotes/guides/intl/encoding.doc.html[15:11] <zumbrunn> ok, thanks for tracking down a current url[16:21] <eliaswimmer> hallo[16:21] <eliaswimmer> is hannes here?[16:22] <zumbrunn> nope, don't think so[16:22] <eliaswimmer> ok[16:23] <eliaswimmer> hm i need to find out where a function is called (file name and line number)[16:24] <midnightmonster> ask anyway[16:24] <eliaswimmer> maybe i am on the right way...[16:25] <eliaswimmer> hallo[16:26] <eliaswimmer> hannes kann ich dich etwas fragen?[16:26] <hns> hallo elias, nur zu[16:28] <eliaswimmer> ich möchte rausfinden wo meine function aufgerufen wird, also line number und datei name[16:28] <hns> ok[16:28] <eliaswimmer> ich brauch das ganze zum debuggen[16:28] <hns> hast du dir mal die tracer-klasse angeschaut?[16:28] <eliaswimmer> jetzt hab ich versucht Packages.org.mozilla.javascript.EvaluatorException("") zu verwenden um an den stack trace zu kommen[16:29] <hns> bzw das Debugger interface von rhino?[16:29] <eliaswimmer> debuggen ist wohl der falsche ausdruck[16:30] <hns> https://dev.helma.org/trac/helma/browser/helma/helma/trunk/src/helma/scripting/rhino/debug/Tracer.java[16:30] <hns> da hast du methode wie onEnter(), onExit(), onLineChange()[16:31] <hns> die werden aufgerufen, wenn in einem script eine funktion aufgerufen wird, verlassen wird, bzw. die zeilennummer wechselt[16:32] <hns> Wenn du das interface org.mozilla.javascript.debug.Debugger implementierst, kannst du diese informationen ach kriegen.[16:32] <eliaswimmer> ich habe deprecated funktionen und da will ich mitloggen wo die auftreten[16:33] <hns> Eine Exception schmeissen geht natürlich auch, sprich eine exception schmeissen, sofort wieder fangen und dann Interpreter.getScriptStackTrace()[16:33] <hns> (das ist eine Methode in Rhino, Helma verwendet die auch)[16:35] <eliaswimmer> ok[16:35] <eliaswimmer> was ist sauberer?[16:35] <eliaswimmer> zweiters scheint einfacher zu sein[16:37] <hns> hm, muss aber erst schauen, ob das geht von js aus.[16:37] <hns> (ich verwends nur von java)[16:42] <eliaswimmer> naja im Endeffekt möchte ich so etwas wie ein erweitertes Function.caller[16:42] <eliaswimmer> mit zeilen nummer und file name[16:42] <eliaswimmer> um das in meine deprecated functions rein zu schreiben[16:44] <hns> ok, das folgende scheint zu funktionieren:[16:44] <hns> try {[16:44] <hns> a.b.c.d[16:44] <hns> } catch (e) {[16:44] <hns> writeln(e.rhinoException.scriptStackTrace);[16:44] <hns> }[16:44] <hns> komischerweise funktioniert es mit throw new Error() nicht.[16:45] <hns> und eigentlich könnte es einen shortcut geben zum script stacktrace:[16:45] <hns> e.trace[16:45] <hns> laut http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Error[16:45] <hns> werd ich mal weiter recherchieren morgen.[16:46] <eliaswimmer> oh das ist super[16:52] <eliaswimmer> danke vielmals, das funktioniert genau so wie ich es brauche :)[16:53] <eliaswimmer> die tracer klasse muss ich mir noch anschauen, hab aber schon gesehen das du sie eingecheckt hast.[20:40] <peter_12> lanaer: I've started working on that JavaScript web framework we talked about many months ago
In the channel now:
Logs by date: