79211884

Date: 2024-11-21 15:37:38
Score: 1
Natty:
Report link

It's not all that hard to implement an optional "Developer" mode for debugging code. Of course, if you've deployed multiple applications with STOP left hanging out in your code, it will require some amount of refactoring. I suppose that will have to happen anyway, though.

In your intialization Function, which can be invoked from an AutoExec macro, add these two lines:

Global Const booDebug As Boolean = "False"

'Global Const booDebug As Boolean = "True"

Wherever your code has a Stop, change it to

If BooDebug Then Stop

During development and debugging, you comment out the "False" option and uncomment the "True" option.

For deployment, of course, you uncomment the "True" option and comment out the "False" option. No further code modifications are required for deployment.

This is a one-time effort, but as noted above, you'll need to address the problem in the code anyway....

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: George Hepworth