You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Wolfgang Egger <be...@wolfgang-egger.de> on 2010/09/18 08:06:25 UTC
breakpoints
Servus,
I am playing a little with evently after watching some of this videos.
To see whats happening while runtime (cause not everythig behaves lije I
exoected to) I would like to debug e.g. data.js with firebug setting some
breakpoints.
Sadly, I cant find the place, to break, to step into the design-doc-code.
Is that possible? Any hints are welcome!
Have a nice and relaxing day
Wolfgang
Re: breakpoints
Posted by Johannes Schneider <ma...@cedarsoft.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I have the same problems...
I have been able to create some unit tests - but only for the map
functions so far. I think I will create a blog post describing the
necessary steps soon...
On 09/18/2010 11:33 AM, Nils Breunese wrote:
> The design doc code is run server-side, while Firebug runs in your browser, so no, it doesn't sound like that's possible. I guess your best friend is the log() function which you can call from functions in your design document and writes to the CouchDB log file.
>
> Nils.
> ________________________________________
> Van: Wolfgang Egger [beuys@wolfgang-egger.de]
> Verzonden: zaterdag 18 september 2010 8:06
> Aan: user@couchdb.apache.org
> Onderwerp: breakpoints
>
> Servus,
>
> I am playing a little with evently after watching some of this videos.
>
> To see whats happening while runtime (cause not everythig behaves lije I
> exoected to) I would like to debug e.g. data.js with firebug setting some
> breakpoints.
>
> Sadly, I cant find the place, to break, to step into the design-doc-code.
>
> Is that possible? Any hints are welcome!
>
> Have a nice and relaxing day
>
> Wolfgang
>
>
- --
Johannes Schneider - blog.cedarsoft.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQEcBAEBAgAGBQJMlIpIAAoJEAytD9R7Qv6dMx4IALC3zfizOilSaAHPMMouon1z
yLUyZMyQRxLx4R4bV6ZrUDC/x40BR/r8MluYrOBQRRTeypFBTcOPZt7nZrJPuEC9
shPHvqbTJUyNxxhnNSPhvGMFVxa/47tPZDIAn3PybgDTHweWEa5SH5xGa+lJHZ6g
2U4dTklHov3HNqdJRXV3YPBHZKpfhn56FMzBJRPQASukqaU3VUk+lzrKcaAAVH0H
CMtO0i2lxU2M92hANK0NasUbeqm5rgTsnXlqp8AESjjFy2/t73gKlXSuD6LHumh6
Y3F7vYTTmGB3bilyrjVJ69i1iZiOv8MCkyfOcTePHgfddOQ2i7BOHI/tEhj+EBU=
=vVsy
-----END PGP SIGNATURE-----
Re: breakpoints
Posted by Chris Anderson <jc...@apache.org>.
On Sat, Sep 18, 2010 at 2:59 AM, Wolfgang Egger <be...@wolfgang-egger.de> wrote:
> Servus Nils,
>
> Nils Breunese <N....@...> writes:
>
>>
>> The design doc code is run server-side, while Firebug runs in your browser, so
> no, it doesn't sound like
>
> ok, server-side is a good point ;)
>
> But the selector-callbacks [e.g. selectors/a/click.js] should run client-side,
> shouldn't it?
>
> Do you know, where the starting-point may be?
>
there are a bunch of log lines already in jquery.evently.js
try setting $.evently.log = true in you html before the app starts
> Thanks for your hint!
>
> Wolfgang
>
>
>
--
Chris Anderson
http://jchrisa.net
http://couch.io
Re: breakpoints
Posted by Wolfgang Egger <be...@wolfgang-egger.de>.
Servus Nils,
Nils Breunese <N....@...> writes:
>
> The design doc code is run server-side, while Firebug runs in your browser, so
no, it doesn't sound like
ok, server-side is a good point ;)
But the selector-callbacks [e.g. selectors/a/click.js] should run client-side,
shouldn't it?
Do you know, where the starting-point may be?
Thanks for your hint!
Wolfgang
RE: breakpoints
Posted by Nils Breunese <N....@vpro.nl>.
The design doc code is run server-side, while Firebug runs in your browser, so no, it doesn't sound like that's possible. I guess your best friend is the log() function which you can call from functions in your design document and writes to the CouchDB log file.
Nils.
________________________________________
Van: Wolfgang Egger [beuys@wolfgang-egger.de]
Verzonden: zaterdag 18 september 2010 8:06
Aan: user@couchdb.apache.org
Onderwerp: breakpoints
Servus,
I am playing a little with evently after watching some of this videos.
To see whats happening while runtime (cause not everythig behaves lije I
exoected to) I would like to debug e.g. data.js with firebug setting some
breakpoints.
Sadly, I cant find the place, to break, to step into the design-doc-code.
Is that possible? Any hints are welcome!
Have a nice and relaxing day
Wolfgang