axmol/cocos/scripting/js-bindings/script/debugger
leeda 18a6d8241d update Copyright. might need manual fix later (#18659)
* Copyright use python script updated. might be fix by manual later

* Revert "Copyright use python script updated. might be fix by manual later"

This reverts commit 49e99418e4da1fd02afda448ddeb16210f5e8c71.

* re modify copyright, consider utf-8-sig encoding

* another situation, add Copyright before  "Permission is hereby granted"

* Revert "another situation, add Copyright before  "Permission is hereby granted""

This reverts commit ee82591d32353c7ce2e146fe51ef447433b47571.

* another situation, add Copyright before Permission is hereby granted

* change "Copyright (c) 2016-2016 Chukong Technologies Inc." to " Copyright (c) 2016 Chukong Technologies Inc."

* script modify copyright, consider is cocos copyright or not

* change "Copyright (c) 2017 Chukong Technologies Inc." to "Copyright (c) 2016 Chukong Technologies Inc."

* manual fix, not fix audio related

* change "2016-2016" to "2016"
2018-01-29 16:25:32 +08:00
..
actors update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
core update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
webconsole update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
DevToolsUtils.js update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
README.md Update js bindings & js tests. 2015-05-05 10:50:19 +08:00
event-emitter.js update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
main.js update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00
transport.js update Copyright. might need manual fix later (#18659) 2018-01-29 16:25:32 +08:00

README.md

Remote Debugging By Using FireFox

Requirement

  • Firefox: From v24

How To Use

Prepare

Please refer to https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging .

Enable Debugger Support For Your JSB Project

bool AppDelegate::applicationDidFinishLaunching()
{
    ...
    
    ScriptingCore* sc = ScriptingCore::getInstance();
    sc->addRegisterCallback(register_all_cocos2dx);
    sc->addRegisterCallback(register_all_cocos2dx_extension);
    sc->addRegisterCallback(register_cocos2dx_js_extensions);
    sc->addRegisterCallback(jsb_register_chipmunk);
    sc->addRegisterCallback(register_all_cocos2dx_extension_manual);
    sc->addRegisterCallback(register_CCBuilderReader);
    sc->addRegisterCallback(jsb_register_system);
    sc->addRegisterCallback(JSB_register_opengl);
    
    sc->start();
    
#if defined(COCOS2D_DEBUG) && (COCOS2D_DEBUG > 0)
    sc->enableDebugger();   // Enable debugger here
#endif

   ...
}

Run your game.

Open Firefox And Follow The Step As Follows

pic 1 pic 2 pic 3 pic 4 pic 5 pic 6