React native console.log not showing in the console view. #899
Comments
hey just curious are you getting any errors in the console? @nanandn |
Hey @nanandn! Do you see the logs if you relax the "tags to include" setting under "Nuclide-ios-simulator-logs"? |
@tsenterd I am not seeing any errors in the console. |
@matthewwithanm Thanks. yes The log shows once I relax the setting. I changed it to '^(.*)$' and I see the logs now. Is this a right setting? What are those tags? |
The tags are our way of recognizing which items are coming from React Native, but it seems like they're not being applied in some cases (or maybe we're not parsing them correctly). @yungsters Anything spring to mind here? |
@matthewwithanm Thank you for the explanation. |
Possibly related:
Is there some way to get the logged messages while the debugger is running? |
@matthewwithanm What's the right way to set the "tags to include" ? Currently I just follow the @nanandn 's solution, set it to "^(.*)$". |
When does this issue will be fixed? |
Any news about this issue? |
@wellyshen @alexhhn Sorry, @yungsters is trying to help debug. |
@nanandn, @wellyshen, or @alexhhn: Can any of you confirm that this is only an issue when remote debugging via the Nuclide debugger (as @jtokoph described)? |
I can see my console.log on Chrome devtool and I wasn't start debugging, here is my step :
|
The same as wellyshen |
@yungsters The console log don't appear even if you are not using the debugging. When I change the tags to ''^(.*)$' it works. |
@wellyshen, @alexhhn, and @anarasimhan: Thanks for the extra information. I tried reproducing the problem, but I am unable to. Can you try looking in the iOS Simulator's System Log (Menu Bar > Debug > Open System Log...) and look for your For example, I see the following in my System Log:
|
@yungsters I only can find the console.log of Nuclide, can you explain how to access system log more specific? Maybe give us an image? |
@wellyshen Select your iOS Simulator. In the Menu Bar, under the Debug menu, select the "Open System Log..." option. This should open a new window with System Logs. From there, use the search feature to look for your console.log message. Please share the entirety of that log message. |
@yungsters Here's my log, does the info enough?
It seems my log on iOS's console.log works fine, but it can't show on the Nuclide's console view. Unless I use the |
@wellyshen Hmm, looks like the iOS Simulator logs are for some reason missing the standard tags that Nuclide uses as the default filter. Thanks for the help. |
@yungsters It seems my log on iOS's console.log works fine, but it can't show on the Nuclide's console view. Unless I use the |
I did not seen the console.log in nuclide console with errors in chrome console:./host/InspectorFrontendHost.js:653 Incompatible embedder: method InspectorFrontendHost.platform is missing. Using stub instead. |
Any update for this? |
Should it work from device as well? Does those settings in |
Any update for this? |
I'm having the same issue as @chipanda #899 (comment). Console with a lot of errors and inspectors doesn't seem to work. If I use the default chrome debugger that opens from packager it shows the logs ok. |
I do not get logs in Atom / Nuclide with or without the remote debugger enabled. CHanging the tags to include does fix it. |
+1 |
Any update? |
I think I have it figured out. Internally at Facebook, we have configured React Native via @matthewwithanm Is there a mechanism to configure the default tag filter in Nuclide differently internally? The current default is very specific to our internal environment. Solution: Use |
@yungsters We don't tag messages at all in open source? Having no filter ( |
@matthewwithanm We do not. If you take a look at #899 (comment), the output is entirely up to how developers happen to integrate React Native into their mobile apps. |
Ugh. Maybe we have to go back to tailing that one random file. I'd much prefer having React's messages tagged in some way that we could identify though. @frantic do you have any ideas here? |
Sorry, may I know any update for this issue? |
@wellyshen No updates currently, sorry! For now, you need to change the filter like you're already doing. |
Okay, I just want to remind that console.log is one of the most important debug way for many developers. We're eager for hearing the fixing of this issue. |
I have the same issue, but I don't want to set the log filter to ^(.*)$, because it will show a lot of other system messages and keep to loop to show :( |
use |
That should be fixed in the latest RN debugger release. |
@modocache Which version of nuclide? I'm use v0.286.0 of nuclide. Even I use RN: 0.50.3 |
It’s currently in master (if you build from source) and will be in next week’s release |
OK, thank you a lot ;) |
This is the best link that explains logging with chrome devtools : https://codeburst.io/react-native-debugging-tools-3a24e4e40e4 |
The log messages printed from the application using console.log are not showing the 'Console' view. I only see messages from React Native Packager. I started the 'Logs' as explained in https://nuclide.io/docs/platforms/ios/#simulator-logs.
Versions
Additional Details
apm ls --installed
):├── atom-beautify@0.29.13
├── atom-formatter-jsbeautify@1.1.2
├── atom-material-ui@1.3.6
├── autoclose-html@0.23.0
├── git-plus@5.25.3
├── haskell-grammar@0.4.0
├── highlight-selected@0.11.2
├── language-babel@2.48.4
├── language-ini@1.16.0
├── language-ocaml@1.1.2
├── language-swift@0.5.0
├── language-thrift@1.0.2
├── merge-conflicts@1.4.4
├── nuclide@0.183.0
├── nuclide-format-js@0.0.36
├── sort-lines@0.14.0
└── tool-bar@1.0.1
The text was updated successfully, but these errors were encountered: