How to create debug android build from within IDE?

Hello. I have noticed that when I build a cocos project in the IDE it’s created as a release build by default (though signed with the debug key). There is no updated file in the runtime\android directory (there is only an old PrebuiltRuntimeJs.apk). Therefore, to get a debug build I always have to use the command line. How can I modify the settings so that when I build with the debug key, the IDE automatically creates a debug build?