From 43c4f563d8f62bc38ad6366c1f12fefe6046d7ed Mon Sep 17 00:00:00 2001 From: yinjimmy Date: Mon, 12 Jan 2015 22:59:46 +0800 Subject: [PATCH] enable debug for iOS / Android platform --- tools/simulator/libsimulator/lib/runtime/Runtime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/simulator/libsimulator/lib/runtime/Runtime.cpp b/tools/simulator/libsimulator/lib/runtime/Runtime.cpp index ef845c6e90..04ecf3930c 100644 --- a/tools/simulator/libsimulator/lib/runtime/Runtime.cpp +++ b/tools/simulator/libsimulator/lib/runtime/Runtime.cpp @@ -226,9 +226,10 @@ void RuntimeEngine::startScript(const std::string &args) void RuntimeEngine::start() { -#if (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32 || CC_TARGET_PLATFORM != CC_PLATFORM_MAC) +#if (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32) && (CC_TARGET_PLATFORM != CC_PLATFORM_MAC) _project.setDebuggerType(kCCRuntimeDebuggerCodeIDE); #endif + // set search path string path = FileUtils::getInstance()->fullPathForFilename(_project.getScriptFileRealPath().c_str()); size_t pos;