Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread showing debug info
Mon, Sep 8 2014 11:12 AMPermanent Link

Harry de Boer

Hi

I read the docs and thought that when running a local webserver in the IDE (included WebHTTP in the uses clause) I could use LogOutput('button clicked') to see that info in the messages. I get no errors, but I don't  see the message.  

Regards, Harry
Mon, Sep 8 2014 11:43 AMPermanent Link

Raul

Team Elevate Team Elevate

On 9/8/2014 11:12 AM, Harry de Boer wrote:
> I read the docs and thought that when running a local webserver in the IDE (included WebHTTP in the uses clause) I could use LogOutput('button clicked') to see that info in the messages. I get no errors, but I don't  see the message.

It does generally - log entries show up in "Messages" window.

There are 2 things i know of that can cause problems:

1. make sure you're actually running in the built-in web server (address
line on top line when running app says http://localhost/yourproject and
not a file path).

2. If web server is NOT running on port 80 then it does not work. You
need to specify URL yourself (i.e.

LogOutput('Button clicked','http://localhost:8080/log');

if server is on port 8080 for example).

You can either write your own helper function or modify the framework
(either update the DEFAULT_LOG_URL function or change the actual
function to dynamically obtain the host and port and then build a URL).

Raul
Mon, Sep 8 2014 12:20 PMPermanent Link

Harry de Boer

>> 2. If web server is NOT running on port 80 then it does not work. You
need to specify URL yourself (i.e. LogOutput('Button clicked','http://localhost:8080/log');

Thanks Raul,

it was indeed not running on port 80, solved now.

Regards, Harry
Image