[luci] How to Debug LuCI modules?
Patrick Sun
lawipac at gmail.com
Thu Jan 14 02:30:09 CET 2010
Hi JoW,
You are right. It's the problem in the Index function. I rewrote
the ".Lua" file piecemeal, and the problem is solved, i.e. a simple
template "hello-word" is displayed correctly. But I'm still wondering,
for a more complicated module,
Is it possible to debug a module line by line?
Also, in LuCI how does session data are preserved? I'm guessing it
has something todo with 'stok' in the URL.
Regards
Patrick
-------- Original email --------
From: Jo-Philipp Wich <xm at subsignal.org>
To: luci at lists.subsignal.org, lawipac at gmail.com
Subject: Re: [luci] How to Debug LuCI modules?
Date: Wed, 13 Jan 2010 18:57:42 +0100
Mailer: Thunderbird 2.0.0.23 (X11/20090817)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Patrick.
First of all you should look at the output of "make runhttpd" while
trying to access /luci, if this does not reveal any useful information,
chances are high that something in your index() function is breaking the
dispatching tree, either by assigning a node to a wrong path or by doing
other operations affecting the environment.
Can you post a narrowed down example of your code?
~ JoW
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAktOCY0ACgkQdputYINPTPN4EQCghULNy+p3yKWwto4ciAZQsnSW
pa8AoJBm6Z3ZPuhfFsz/buoAkEF9ZdCL
=n00w
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.subsignal.org/pipermail/luci/attachments/20100114/5219d8c3/attachment.htm
More information about the luci
mailing list