[Opa] Opa and debugging

Adam Koprowski Adam.Koprowski at mlstate.com
Thu Jan 19 16:58:01 UTC 2012


  Btw. you can (almost) have that with Opa. Just use "-d" option when
running your program and a opa-debug directory will be created with all
your resources. Now you can change them and the changes will be reflected
in real-time in your program (well, you'll usually need to reload the page
or something, but you know what I mean). The only caveat is that when
you're finished and happy with changing, say, your CSS or images you'll
need to remember to copy them back to your project folder. More about that
here:
http://blog.opalang.org/2011/07/image-part-1-dealing-with-external.html
  Best,
  Adam

On Thu, Jan 19, 2012 at 16:55, Alok Menghrajani <alok at fb.com> wrote:

> For CSS, I usually link to a style sheet which is not served as a resource
> (but instead served from an apache server). This lets me make changes to
> the css without having to recompile things.
>
> Alok
>
> On 1/19/12 2:23 AM, "Adam Koprowski" <Adam.Koprowski at mlstate.com> wrote:
>
> >  If things go wrong, indeed logging seems to be the solution of choice,
> >just as Frederic explained. For HTML & CSS problems Chrome's debugging
> >console works like a charm (in tandem with '-d' and similar options of
> >Opa programs). However using the console to debug JS can be tricky at
> >best, as most of JS of Opa programs is generated automatically. On the
> >server side one could in principle try ocaml debugging facilities but if
> >one succeeded in that I'd be very impressed indeed :).
>
> _______________________________________________
> Opa mailing list
> Opa at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/opa
>



-- 
*Adam Koprowski                [http://adam-koprowski.net]
Opa Tech Evangelist @ MLstate [http://opalang.org | http://mlstate.com]*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/opa/attachments/20120119/29d44ab1/attachment.html>


More information about the Opa mailing list