What do you use for development of Cocos2d-JS?

I use Atom it is light like sublime and it has good code completion too!
just install its tern plugin and your ready to work

its fast and customizable you can check it out :wink:

Hi @eydamson:

I use Atom too and Chrome for web debug.

So web engine and native engine are different, I use Cocos Code IDE only for native debug (Remote Debugging and Hot Swapping) to improve productivity. Alternative is recompile your native package constantly.

your right sir @patriciog, atom doesnt have a debugger like that so far, so i use an actual phone and firefox for native debuggingā€¦ but he is asking for web tools right? hehe but iā€™ll gonna try your solution since cocos code ide has no support anymoreā€¦ but the problem is that cocos code ide is slowā€¦ and its kind a annoyingā€¦ hehe :smile:

My approach is:

  • Development Time: Atom + Chrome
  • Test/Debug/Run Time: Cocos Code IDE + Runtime Package
1 Like

Just to clarify. Iā€™m interested in native app development (not Web based).
I was quite happy with the old Cocos Code IDE (eclipse based) because it had all one really needs.
The only problem is that newer versions of cocos are not supported.
I hope that the workaround described by @patriciog works.
Iā€™ll test it soon. Thank you guys for all your hints so far :wink:

Feel free to ask me if you have any question, @pepeek.

The Digital Spell Team wish you a Merry Christmas and a happy New Year!

I share here the prebuild runtime.apk for cocos2d-x 3.9 like it was provided in the past. It is compiled using cocos2d-x 3.9 and old simulator/runtime classes (without simulator library). It supports Remote Debugging and Hot Swapping (reload changes at runtime) on Cocos Code IDE 1.2.

Finally I expose my conclusion. It isnā€™t the panacea, because it has several crashes related with reload changes when you have a complex game (multiple scenesā€¦). Note that we are using old runtime/simulator code classes from cocos2d-js 3.6. It works fine with hello world sample code. We need help.

Please @slackmoehrle, @pandamicro, @yinjimmy or someone know about this issue:

  • We donā€™t know how use it after all-in-one Cocos2d-x&JS v3.7 was released: What is the aim of simulatorlib? How are people using it? I see you are keeping it: https://github.com/cocos2d/cocos2d-x/tree/v3/tools/simulator/libsimulator
  • At evaluation and comparision of tools, I decided on Cocos2d-x when I saw Remote Debugging and Hot Swapping. Will you include these useful and productive features in the future? Let me know if I can count with cocos2d-x on the next project.

I really appreciate any help you can provide.

@patriciog sir how can i use your apk to debug my ks project?
do you have steps listed thank youā€¦

I donā€™t know about this issue. Let us ask @nite. I know he is pretty handy with javascript.

Hi @eydamson:

You need Cocos Code IDE. See WIKI for more info: http://www.cocos2d-x.org/wiki/How_to_Debug_Cocos2d-JS_Game_Using_Code_IDE

sir @patriciog i use your apk in cocos code but the editor throws error like this



even though my device is not locked and it has debugging enable on
can you gues why? thanks sir

Are you using ADB or WLAN Mode @eydamson?

i am using adb sirā€¦
what i did is

  • create a js project with existing resources
  • set the debug mode in adb with the apk you provided for us

sorry for the trouble :blush: