4D Blog

Home Product Server code development in project applications

Server code development in project applications

July 24, 2020

Product

Developing and debugging server code in project applications has become easier than ever in 4D v18 R4. Without further ado, let’s take a look at how to do it.

Before going any further, we’re aware that there are many different client/server development scenarios, that’s why we’re preparing an upcoming blog post to show you ways to manage project application development within a team. In the meantime, let’s see how to develop, fine-tune, and debug server code.

This new behavior is very useful when developing stored procedures and methods executed on servers (e.g., web server methods and triggers, or commands returning specific results).

Reminder about general Client/Server behavior

You’ve certainly noticed that you can’t modify code or forms on the client side when developing project applications in client/server mode. The reason is because when connecting to the server, the client downloads a single .4DZ file containing all of the project files (i.e., a snapshot of the server code at the time of the connection).

Since .4DZ file is compressed, it provides many advantages: transferring it from 4D Server to 4D Remote is more efficient (using less bandwidth) and code integrity is preserved (no desynchronization between method calls and new method parameters, for example).

As a result, project files can’t be modified on the client side.

A NEW way to develop and debug server code

To save time and avoid having to restart your server application after each code modification (in standalone mode), we provide you the ability to refine and debug your server-side code.

From now on, when you connect a 4D Remote that is located on the same computer as the 4D Server, the remote 4D is able to modify the project files (code, forms, resources, etc.).

How does it work?

When a 4D Developer client connects to a 4D Server on the same computer, the .4DZ file is not transferred from the server to the client. The 4D Remote manages the project files (methods, forms, resources, etc.) as if it were a 4D single-user client. The project files are shared by 4D Server and 4D Remote.

This way, you can modify your code and test it on the fly.

If you want the server to reload the modified files, just switch from the development environment to application mode, move the 4D Server to the foreground or select the “File / Save all” menu item in the 4D Remote (or use the new RELOAD PROJECT command).

Remember that running a method on the client-side automatically performs a “Save all” action, and as a result it reloads the modified files on the server-side.

If you have any questions about this feature, feel free to join the discussion on the 4D Forum.

Discuss

Tags Programming, Project database, v18 R4, v19

Latest related posts

  • November 14, 2025

    Event Report in 4D Qodly Pro: See Every Interactions at a Glance

  • November 14, 2025

    4D Qodly Pro: Page Zoom Controls

  • November 13, 2025

    macOS Tahoe, Windows 11, which operating systems for 4D 20 and 21?

Avatar
Damien Fuzeau
- Product Owner - Damien Fuzeau joined the 4D Product team in February 2019. As a Product Owner, he is responsible for writing user stories and translating them into functional specifications. His role also involves ensuring that the delivered feature implementations meet customer needs. Damien holds a degree in Software Engineering from the University of Nantes. He spent over 23 years at his previous company, first as a developer (discovering 4D in 1997), and later as Engineering Manager and Software Architect. The company was an OEM partner of 4D and deployed enterprise software based on 4D for thousands of users across hundreds of servers. Damien is therefore well-versed in 4D development and deployment in multilingual environments.
  • Deutsch
  • Français
  • English
  • Português
  • Čeština
  • Español
  • Italiano
  • 日本語

Categories

Browse categories

  • AI
  • 4D View Pro
  • 4D Write Pro
  • 4D for Mobile
  • Email
  • Development Mode
  • 4D Language
  • ORDA
  • User Interface / GUI
  • Qodly Studio
  • Server
  • Maintenance
  • Deployment
  • 4D Tutorials
  • Generic
  • 4D Summit sessions and other online videos

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor

Tags

4D AIKit 4D for Android 4D for iOS 4D NetKit 4D Qodly Pro 4D View Pro 4D Write Pro 20 R10 21 Administration AI Artificial Intelligence Build application Class Client/Server Code editor Collections Compatibility settings Formula Google Listbox Logs Mail Network Objects OpenAI ORDA PDF Pictures Preemptive Programming REST Scalability Security Session Source control Speed Spreadsheet Tutorial UI User Experience v20 vscode Web Word processor
Subscribe to 4D Newsletter

© 2025 4D SAS - All rights reserved
Terms & Conditions | Legal Notices | Data Policy | Cookie Policy | Contact us | Write for us


Subscribe to 4D Newsletter

* Your privacy is very important to us. Please click here to view our Policy

Contact us

Got a question, suggestion or just want to get in touch with the 4D bloggers? Drop us a line!

* Your privacy is very important to us. Please click here to view our Policy