When working with your own component, switching between the host and component environments just to debug or enhance your component code can be inconvenient. With 4D 20 R9, you can now edit and debug component shared methods and classes directly within the host project, as long as the components are included with their source code.
Edit Component Methods and Classes Seamlessly
Previously, modifying component code required reloading the component or even the host project. Now, 4D developers can simply double-click on a component method or class to open it in the standard code editing window.
Debugging Made Easier
Debugging component methods and functions has also been enhanced. When stepping into an editable component method or class, clicking the Edit or Abort and Edit button will open the corresponding method or function, making issue resolution faster and more intuitive.
Live Code Usage Without Reloading
One of the most powerful enhancements is the ability to use modified component code without needing to reload the component or restart the host project. This means changes take effect immediately, significantly reducing downtime and accelerating the development cycle.
Development Mode in Client/Server Environment
For those working in a client/server setup, component modification is now possible when Activate development mode is enabled. Of course, you need read and write permissions on your component directory
Conclusion
These enhancements provide a more flexible experience when working with components in 4D. By allowing direct editing, debugging, and seamless execution of modified component code, 4D significantly boosts development productivity. Try out these new features and enjoy a smoother, more efficient coding workflow in your 4D projects!
And this is just the beginning! Soon, you’ll be able to fully manage your components directly from the host database (edit forms…)!