ionic-cli: console output doesn't work for Ionic v1 / CLI 3.5
Description:
–console option (for any command that supports it) does not work with Ionic v1 + CLI 3.
ionic serve -c [INFO] Starting server: --consolelogs --c --port=8100 --p=8100 --livereload-port=35729 --r=35729 --address=0.0.0.0 - Ctrl+C to cancel
Steps to Reproduce:
Use a Ionic v1 project + CLI 3.5. Can be produced using a template project such as tabs. Just add a console.log (“MESSAGE TO CONSOLE”) in any .js, e.g. app.js
- ionic serve -c
- console does not get echoed to Terminal window, only to browser’s native console logger in debugger
Output:
ionic serve -c [INFO] Starting server: --consolelogs --c --port=8100 --p=8100 --livereload-port=35729 --r=35729 --address=0.0.0.0 - Ctrl+C to cancel
NO OUTPUT to terminal. Only to Safari / Chrome debugger console.
OR to an emulator
ionic cordova emulate -lc ios --target ‘iPad-Air-2’
[INFO] Starting server: --livereload --l --consolelogs --c --address=0.0.0.0 --port=8100 --p=8100 –livereload-port=35729 --r=35729 --iscordovaserve --external-ip-required --nobrowser - Ctrl+C to cancel
NO OUTPUT to terminal. Only to Safari debugger console.
My ionic info
:
global packages:
@ionic/cli-plugin-proxy : 1.3.2
@ionic/cli-plugin-proxy : 1.3.2
@ionic/cli-utils : 1.5.0
Cordova CLI : 7.0.1
Gulp CLI : not installed globally
Ionic CLI : 3.5.0
local packages:
@ionic/cli-plugin-cordova : 1.4.1
@ionic/cli-plugin-gulp : 1.0.2
@ionic/cli-plugin-ionic1 : 2.0.1
Cordova Platforms : android 6.0.0 ios 4.4.0
Ionic Framework : ionic1 1.3.3
System:
Node : v7.4.0
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
ios-deploy : 1.9.0
ios-sim : 5.0.13
npm : 4.1.1
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 17 (4 by maintainers)
@lucarin91 For now if you open
chrome://inspect
in your Chrome browser, you can attach to your device debugger.