1
I’m using Ruby 2.1 32 bits. Interpreting scripts as CGI by Apache 2. Through Local IP.
I am in a process of migrating several script in PHP to Ruby.
During the process of writing code, several times error both in typing and in some new concepts about the language and its various libraries. The problem is that every time an error or exception occurs, Apache only returns Error 500. And next, I have to open the error logs of Apache check the messages kind of confusing, which takes me useful encoding time.
My question, is there any way to send the errors and exceptions to the default output so that they are shown in the Browser and not just recognized by the server?
I don’t know exactly how your code is organized, nor do I have CGI experience, but it wouldn’t be easier to just run your scripts manually from the command line and check the results?
– Fuad Saud
It would be a similar time dump to the current one. Since it would have to switch a lot between the browser and the terminal. But it was worth the option.
– Guill