ns debug android

Start a debugging session for your project on a connected Android device or Android emulator


--env.aotCreates an Ahead-Of-Time build (Angular only)
--env.uglifyProvides basic obfuscation and smaller app size
--env.reportCreates a Webpack report inside a /report folder in the root folder
--env.sourceMapCreates inline source maps
--env.hiddenSourceMapCreates sources maps in the root folder (useful for Crashlytics usage with bundled app in release)
--env.verbosePrints verbose logs and the internal config before building
--env.productionEnable production mode (will minify the code)
--env.replace=from:toAdd file replacement rules. For source files (.js and .ts) this will add a new alias to the config, for everything else, this will add a new copy rule
--no-hmrDisables Hot Module Replacement (HMR)
--forceSkips the application compatibility checks and forces npm i to ensure all dependencies are installed
--device <device id>Specifies a connected device/emulator to start and run the app
--cleanForces rebuilding the native application
--emulatorSpecifies that you want to debug the app in an emulator
--timeout <seconds>Sets the number of seconds that the NativeScript CLI will wait for the debugger to boot. If not set, the default timeout is 90 seconds
--debug-brkPrepares, builds and deploys the application package on a device or in an emulator, and stops at the first JavaScript line until either the debugger frontend connects or a 30 seconds timeout elapses
--startAttaches the debug tools to a deployed and running app
--no-watchChanges in your code will not be livesynced
--aabSpecifies that the command will produce and deploy an Android App Bundle
--env.snapshotCreates a V8 Snapshot decreasing the app start time (only for release builds for Android)
--env.compileSnapshotCompiles the static assets produced by --env.snapshot into .so files allowing the native build to split them per architecture. This will reduce the app size when using the --aab option
--env.appComponentsAllows passing additional App Components for android