Changeset 406 for trunk/docs/services/debug.txt
- Timestamp:
- Mar 28, 2013, 12:51:45 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/docs/services/debug.txt
r398 r406 3 3 How To Debug ZOO Services 4 4 ========================= 5 6 :Authors: Luca Delucchi 7 :Last Updated: $Date: 2013-03-27 00:06:12 +0100 (Wed, 27 Mar 2013) $ 5 8 6 9 There are different ways to debug your services, the most used solutions are via web … … 32 35 sys.stderr.write("My message") 33 36 37 .. _web_javascript: 38 39 Javascript 40 ************ 41 42 You 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]`` 34 52 35 53 Command line … … 73 91 # add this line when you want investigate more in the code 74 92 pdb.set_trace() 93 94 Javascript 95 ************ 96 97 You 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.