From b4578572dc1ae38c5e19800aa22d25eea5bc3afe Mon Sep 17 00:00:00 2001 From: James Chen Date: Mon, 9 Oct 2017 15:25:57 +0800 Subject: [PATCH] Updates config.hpp, uses COCOS2D_DEBUG for controlling debugger. --- native/cocos/scripting/js-bindings/jswrapper/config.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/native/cocos/scripting/js-bindings/jswrapper/config.hpp b/native/cocos/scripting/js-bindings/jswrapper/config.hpp index 15b8163336..eb8bcec272 100644 --- a/native/cocos/scripting/js-bindings/jswrapper/config.hpp +++ b/native/cocos/scripting/js-bindings/jswrapper/config.hpp @@ -14,9 +14,13 @@ #define SCRIPT_ENGINE_TYPE SCRIPT_ENGINE_NONE #endif -#define SE_ENABLE_INSPECTOR 0 - +#if defined(COCOS2D_DEBUG) && COCOS2D_DEBUG > 0 +#define SE_ENABLE_INSPECTOR 1 #define SE_DEBUG 2 +#else +#define SE_ENABLE_INSPECTOR 0 +#define SE_DEBUG 0 +#endif #ifdef ANDROID