Enable Debugger for PROCESS 4D TAGS in compiled mode

Automatically translated from English

PROCESS 4D TAGS has been enhanced with each 4D version and the latest additions as 4DCODE have drastically increased the use cases. What was previously a single line of code, is now often many lines, even pages, of 4D code.

The debugger has always been useable inside 4DCODE tags, but only in interpreted mode.

PROCESS 4D TAGS is often used for smart, complex templates, but some issues only happen on the customer side with customer data. You could insert your own logs in the code, but what if there was a better way?

Now you can debug the code using the TRACE command. Even if your application is compiled, because this code is executed in an interpreted context, the debugger will help you analyze what’s happening. All functionalities are available: call chain, watch, and custom watch panes. Even breakpoints are available for the debug session!


Let’s take a complex report, produced by a smart template. Depending on the settings, the template produces an HTML or Excel file – or sends the results directly as an email. Now the customer calls, reporting that sending email is failing in their new office. It works for you, something onsite? Sound familiar?

Simply insert TRACE in the 4DCODE block of your template and run the method. The following debugger now appears:
You’re welcome!


• Product Owner •

Damien Fuzeau has joined the 4D Product team in February 2019. As a Product Owner, he is in charge of writing user stories, then translating them to functional specifications. His job also entails making sure that the feature implementations delivered are meeting the customer needs.

Damien is graduated from the University of Nantes in software engineering. He spent more than 23 years in its former company, first as developer (discovering 4D in 1997), and later as engineering manager and software architect. This company is a 4D OEM partner and deployed 4D based business softwares for thousands users, on hundreds servers. So, Damien is used to 4D development and deployment in a multi-language context.