I copied opa chat application. It's working on OSX Lion but not on my 32 bit linux machine. I know that 32 bit is not supported but I was able to compile opa. I then compiled chat app. When I access it, I get the initial page but when I add some text to cha开发者_开发问答t, that text is not displayed.
I don't know how to debug this. I have increased the verbosity to 8. What else can I do to debug this?
Thanks Prabhat Gupta
As pointed out by Hugo, 32 bits is not officially supported. However, from your experience, this seems to be an accessible goal. If you want to debug the issue, that is actually provide a 32 bits port of Opa, then the Opa team is willing to encourage and support you!
In your case, the interesting output log is probably in a file error.log at the path where you launched your chat app. But you can have more logs. When you compile from sources without passing the -release flag to ./configure, you have access to a lot of shell environment variables that trigger debug logs (or alter the behavior of the compiler). They are all listed in libbase/debugVariables.mli (all variables are named MLSTATE_SOMETHING_IN_UPPER_CASE). There is also a command-line tool called mlset that is installed by make install (maybe make install-all) that may help.
A first step to debug is to set MLSTATE_SHOW_LOGS=1, then maybe some other relevant flags. I would advise to pick first some of MLSTATE_SESSION_DEBUG, MLSTATE_HTTP_DEBUG, MLSTATE_PING_DEBUG (set them to higher values).
Good luck!
精彩评论