How to tell if in debug mode? #4850
Unanswered
moonman239
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Do that in the test setup, not in your app setup. That way you know the code is only set in tests. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on a SaaS application that accepts payments through Stripe. I have to use different keys for Stripe's API, depending on whether I'm testing my application or the application is in production.
For example, the application should use the API key "stripe-test-1234" in my development environment, and "stripe-prod-5678" in my production environment.
Because of this, I'd like to have some code that looks like this:
Is there a way to check if the application has been run with the --debug option? If so, how?
Thanks for your assistance.
Beta Was this translation helpful? Give feedback.
All reactions