JSDB Newbie

20 views
Skip to first unread message

Anderson

unread,
Dec 3, 2009, 6:35:54 PM12/3/09
to JSDB
Hi All,

I'm just beginning to find my way around JSDB, and I'm all giddy with
the possibilities. I would like to use jsdb as a server-side scripting
engine, but probably not as a cgi handler. I'm currently running on
both os-x and freebsd.

I have a few newbie questions you all might be able to help with.

Is there a way for the jsdb executable to take its input from stdin,
instead of from a file?

I am trying to follow the debugger example in http://www.jsdb.org/tutorial.html,
but there is some windows-only stuff going on in debug.js--registry
stuff, for starters.
Is it worth trying to get this working on OS-X? What are those
registry entries for, and can I hack around them to get this working
on os-x, or is there some other windows platform stuff lurking under
the surface that I will run into?

I would like to try using jsdb as a cgi handler, just for kicks. Is
there a tutorial, howto, or example somewhere of how to do this?

Is there any documentation around other than this google group,
jsdb.org tutorial and cookbook?
No slight intended, I can read code and I'm grateful for it. I just
don't want to miss the obvious.

Anderson

Anderson

unread,
Dec 5, 2009, 6:01:25 PM12/5/09
to JSDB


On Dec 3, 5:35 pm, Anderson <anderson.wi...@gmail.com> wrote:
> I am trying to follow the debugger example inhttp://www.jsdb.org/tutorial.html,
> but there is some windows-only stuff going on in debug.js--registry
> stuff, for starters.
> Is it worth trying to get this working on OS-X? What are those
> registry entries for, and can I hack around them to get this working
> on os-x, or is there some other windows platform stuff lurking under
> the surface that I will run into?
>

I'll answer one of my own questions. The Server class used by debug.js
seems to rely on InternetServer, which appears in 1.8.0 to only be
implemented for windows. If I want it badly enough I can implement a
POSIX solution, which I will certainly contribute back, but more
likely I'll just debug JS from vmware. It was a very educational hour
or two figuring that out. I can now build and debug the c/c++ side of
JSDB in Xcode.

Can anyone suggest a canonical class that I should look at as a model
to implement my own native class extensions for JSDB?


Shanti Rao

unread,
Dec 6, 2009, 10:51:35 AM12/6/09
to JSDB
Hi Anderson,

It is my intent for JSDB's debugger to work on all platforms, and to
be useful for debugging CGI scripts.

The debugger needs a little work, as you've noticed. InternetServer
should work across platforms -- sounds like a bug.

For a CGI example, see http://www.jsdb.org/wiki.zip.

Shanti

On Dec 3, 3:35 pm, Anderson <anderson.wi...@gmail.com> wrote:
> Hi All,
>
> I'm just beginning to find my way around JSDB, and I'm all giddy with
> the possibilities. I would like to use jsdb as a server-side scripting
> engine, but probably not as a cgi handler. I'm currently running on
> both os-x and freebsd.
>
> I have a few newbie questions you all might be able to help with.
>
> Is there a way for the jsdb executable to take its input from stdin,
> instead of from a file?
>
> I am trying to follow the debugger example inhttp://www.jsdb.org/tutorial.html,

Anderson Wiese

unread,
Dec 6, 2009, 11:41:30 AM12/6/09
to js...@googlegroups.com
Doesn't seem fair to call it a bug, just unimplemented. I think it
would be helpful if for places where XP_WIN is the only implementation
would throw an exception for #else. If I make that change would you
want it as a contribution?
> --
>
> You received this message because you are subscribed to the Google
> Groups "JSDB" group.
> To post to this group, send email to js...@googlegroups.com.
> To unsubscribe from this group, send email to jsdb+uns...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/jsdb?hl=en
> .
>
>

Reply all
Reply to author
Forward
0 new messages