Capacitor.DEBUG, where is this flag documented?

Hello,

We are currently utilizing Capacitor 5 for our project, and we’ve come across a global variable named DEBUG. However, we couldn’t find any mention of it in the documentation. (If it’s there, we apologize for overlooking it.)

We’re wondering if Capacitor.DEBUG is a dependable method for detecting whether the app is a release or a development build. Additionally, we would like to know where this flag is set on Android and iOS.

From our testing, it seems to work as expected. However, we’d appreciate confirmation to ensure its reliability.

Thank you for your assistance.

Yes, Capacitor.DEBUG is method for detecting the app is released or a development build in capacitor 5.
It is managed during the build process for the ios and andriod platform and it is typically set true for the true for development and false for the release build.