Ignore:
Timestamp:
Mar 28, 2013, 12:51:45 PM (11 years ago)
Author:
lucadelu
Message:

add more information about Javascript services

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/services/debug.txt

    r398 r406  
    33How To Debug ZOO Services
    44=========================
     5
     6:Authors: Luca Delucchi
     7:Last Updated: $Date: 2013-03-27 00:06:12 +0100 (Wed, 27 Mar 2013) $
    58
    69There are different ways to debug your services, the most used solutions are via web
     
    3235  sys.stderr.write("My message")
    3336
     37.. _web_javascript:
     38
     39Javascript
     40************
     41
     42You can user ``alert`` to print a string to the standard error.
     43
     44.. code-block:: javascript
     45
     46  // add this line when you want see your message
     47  alert('My message')
     48  // you can debug value of inputs, outputs or conf
     49  alert(inputs["S"]["value"])
     50
     51.. note:: If you try to pass an object it return only ``[object Object]``
    3452
    3553Command line
     
    7391  # add this line when you want investigate more in the code
    7492  pdb.set_trace()
     93
     94Javascript
     95************
     96
     97You can use ``alert`` also to print in the console, more info in the :ref:`web_javascript` web section
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png