How to watch console.logs in ionic emulator?

前端 未结 6 1013
别那么骄傲
别那么骄傲 2021-02-01 14:33

I\'m building an app using the Ionic framework, which I\'ve done in the browser until now. Because I now want to use the cordovaOauth plugin I need to use the emulator. The prob

6条回答
  •  梦如初夏
    2021-02-01 14:58

    1. If you wan't to watch console logs in emulator / simulator use

      ionic emulate -l -c

    2. If you wan't to watch console logs when testing in device you can launch this command :

      ionic run -l -c

    -c = --consolelogs : Print app console logs to Ionic CLI (livereload req.)

    -l = --livereload : Live reload app dev files from the device

    May help someone !

提交回复
热议问题