Get your own customer support community
 

Ignore dialogs in headless apps?

I've spent a lot of time recently debugging an application that wasn't working properly. Sometimes it worked, and sometimes, it didn't. Finally, I figured out what the problem was. My app is "headless", i.e. no user interface. However, when I added a Main form and tested my functionality that way, all was fine. Since you can't use logs in headless apps, I started logging my messages in an external database. Unfortunately, I still had a rogue dialog message statement in my code and *THAT* was what was causing my code to fail.

Could "dialog message" statements to simply be ignored when an app is being run in "headless" mode? That would certainly make my life easier. Otherwise, it's really difficult to track down this type of problem.

Just a thought.
 
silly I’m a headless, hoarse man.
Inappropriate?
2 people like this idea

User_default_medium