![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 9 of 9 total |
![]() |
Sun, Jul 26 2015 8:02 PM | Permanent Link |
Max Evans | Tim,
If I change the internal web server port in the IDE to anything other than 80 eg 8080, then it seems that any of my calls in code to logoutput are ignored and not displayed in the messages window. All of the the standard IDE startup messages like emitted, copied and success are fine. I'm not sure If this is standard behaviour or not... cheers |
Mon, Jul 27 2015 2:21 AM | Permanent Link |
Rick | On 27/07/15 10:02, Max Evans wrote:
> If I change the internal web server port in the IDE to anything other than 80 eg 8080, then it seems that any of my calls in code to logoutput are ignored and not displayed in the messages window. > > All of the the standard IDE startup messages like emitted, copied and success are fine. > > I'm not sure If this is standard behaviour or not... > My assumption is that LogOutput wants to send to port 80 by default. The call syntax can be viewed here: http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Debugging The second parameter is a URL for the server to which the message is sent. I use the following syntax for port 8080: LogOutput('my message','http://localhost:8080/log'); and that seems to work. -- Rick |
Mon, Jul 27 2015 4:28 AM | Permanent Link |
squiffy Telemix Ltd. | I'm having the same issue using port 7781.
I have the WebHTTP in the uses line, and I'm calling it like this : LogOutput('preset changed','http://localhost:7781/log'); If I put a message box like this immediately before or after the LogOutput, I see the message box : ShowMessage('here'); but all I see in the Messages debug window is 3 lines, 2 emit and one "Success". My LogOutput does not show at all. |
Mon, Jul 27 2015 5:56 AM | Permanent Link |
Rick | On 27/07/15 18:28, squiffy wrote:
> I'm having the same issue using port 7781. > I have the WebHTTP in the uses line, and I'm calling it like this : > LogOutput('preset changed','http://localhost:7781/log'); > > If I put a message box like this immediately before or after the LogOutput, I see the message box : > ShowMessage('here'); > > but all I see in the Messages debug window is 3 lines, 2 emit and one "Success". My LogOutput does not show at all. > I added a button with an OnClick event containing the following: ShowMessage('test'); LogOutput('My message','http://localhost:8080/log'); Clicking the button added the message to the Messages log and displayed the ShowMessage. It seemed to work as expected. Do you have some example code that doesn't work? -- Rick |
Mon, Jul 27 2015 6:14 AM | Permanent Link |
squiffy Telemix Ltd. | Here's the procedure :
procedure TfrmPickADate.selectPreset(Sender: TObject); begin ShowMessage(IntToStr(cmbPresetDate.ItemIndex)); LogOutput('preset changed','http://localhost:7781/log'); end; It's called from the onChange event of a tbuttoncombobox ShowMessage works fine, but nothing in the log window. |
Mon, Jul 27 2015 6:33 AM | Permanent Link |
Rick | On 27/07/15 20:14, squiffy wrote:
> Here's the procedure : > > procedure TfrmPickADate.selectPreset(Sender: TObject); > begin > ShowMessage(IntToStr(cmbPresetDate.ItemIndex)); > LogOutput('preset changed','http://localhost:7781/log'); > end; > > It's called from the onChange event of a tbuttoncombobox > > ShowMessage works fine, but nothing in the log window. > I set up a TButtomComboBox with associated OnChange just as you described and both the ShowMessage and the Message window entry appeared as expected. I even changed my internal web server to port 7781. Can you confirm that your internal web server is running on the same port you have specified in the LogOutput call? If the port numbers don't match there won't be an error message, you just won't see anything. -- Rick |
Mon, Jul 27 2015 6:45 AM | Permanent Link |
squiffy Telemix Ltd. | Ok, fixed it. You were kind of right.
If you stop the internal web server (or just don't start it) and run the program (F9), the web server gets started but I see the issue I reported - the log doesn't log. If you start the web server in the IDE before running the program, then it all works just fine - I see the log. I'll stick it on my wall list of idiosyncrasies ![]() Thanks for your help. |
Mon, Jul 27 2015 4:46 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | << If you stop the internal web server (or just don't start it) and run the program (F9), the web server gets started but I see the issue I reported - the log doesn't log. >>
Per the documentation: LogOutput Procedure -------------------------------------------------------------------------------- For simple debugging needs, ******make sure that the internal web server is the selected web server in the IDE and that the internal web server is running (see Running a Project)******. Then, include the WebHTTP unit in the uses clause of the unit that you wish to debug. Finally, call the LogOutput procedure where necessary, passing any debug messages to the procedure as a single String parameter: http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Debugging Tim Young Elevate Software www.elevatesoft.com |
Mon, Jul 27 2015 4:57 PM | Permanent Link |
squiffy Telemix Ltd. | Ah, nuts. Missed that little detail. Apologies.
Must drink less coffee... |
This web page was last updated on Wednesday, August 14, 2024 at 07:31 PM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |