KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Debugging Web Processes under 4D Server
PRODUCT: 4D | VERSION: 6.7 | PLATFORM: Mac & Win
Published On: August 10, 2001

At the present time, 4D's Web Server is not available for use with 4D Client. Suppose you are working on a project with several developers, though, and you _are_ using 4D Client. Since 4D Client cannot be the Web server, the 4D Server will have that job. It's likely that the server is not sitting next to you, so how do you debug the methods that you write, since the debugger window will appear on the server machine?

The answer is, don't use 4D's debugger. Instead, consider this trick: Just have 4D send debugging messages to your Web browser. Here is a simple method:

`Method: WEB_Debug
`Purpose: Sends a Debugging Message to the Web Browser

C_TEXT($1)
SEND HTML TEXT($1)
ABORT

`end

So to send a debug message, you can insert the following into your code:

WEB_Debug("The value of $sName is "+$sName)

You can edit the 4D methods that you are writing with 4D Client, and receive debugging messages on your Web browser.