Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Suggestion: Add option to log window output to console #17

Closed
karlvd opened this issue Aug 27, 2018 · 2 comments
Closed

Suggestion: Add option to log window output to console #17

karlvd opened this issue Aug 27, 2018 · 2 comments
Labels

Comments

@karlvd
Copy link

karlvd commented Aug 27, 2018

Suggestion

Add an option to log window output to browser console in expo

Problem description

  • Enabling Remote JS debugging makes apps painfully slow and introduces new weird bugs since JS is executed in the browser and not in the app.
  • Viewing console.log in the expo output window becomes difficult with large objects & arrays since it´s plain text, no collapse/expand functionality.

Solution

Add an option to log window output to console on the device tab window.

This way you would benefit from both having the JS code executed in the app and having the power of expanding/collapsing objects & arrays in the browser dev tools console.

If you think it´s good suggestion I belive it would be fairly easy to implement with a checkbox on top of the device window as a switch and just console.log() all output from that window if checked.

image

@fson
Copy link
Contributor

fson commented Aug 28, 2018

Thanks for the suggestion @karlvd! I think it would be even nicer, if the log screen itself supported expanding/collapsing objects and arrays just like the browser console does. This is something we're planning to add.

Logging all the log output to console would be an easy to implement workaround for the same problem, but it's harder for users to discover and there's no separation of different log sources. Therefore I think improving the log component itself to support this would be a better long term solution.

@karlvd karlvd closed this as completed Aug 31, 2018
@omar-bakhsh
Copy link

why this error showsup every time

$ npm i -g @expo-cli --save
npm ERR! code EINVALIDTAGNAME
npm ERR! Invalid tag name "@expo-cli": Tags may not have any characters that encodeURIComponent encodes.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Amoory.SO\AppData\Roaming\npm-cache_logs\2019-05-17T19_28_11_226Z-debug.log

@lock lock bot added the outdated label Nov 13, 2019
@lock lock bot locked and limited conversation to collaborators Nov 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants