Skip to content

Conversation

@ccheever
Copy link
Contributor

We still write to NSLog or similar as well

There may be some performance penalty but I don't think so unless the REPL
window is open. It would not be hard to add a flag to this if necessary.
This will definitely make debugging and development easier.

@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@ccheever ccheever changed the title Making console write to the Safari debugger REPL Making console write to the Safari debugger Mar 27, 2015
@ccheever ccheever changed the title Making console write to the Safari debugger Making console write to the Safari debugger console as well as NSLog Mar 27, 2015
@ccheever
Copy link
Contributor Author

Any thoughts on this? @vjeux

@meetwudi
Copy link
Contributor

I don't think it is necessary to send it to Safari debugger. It will make it complicated, when Windows support is released. I think it can send to the development server, which will somehow keep consistency among different platforms.

@ide
Copy link
Contributor

ide commented Mar 28, 2015

@tjwudi the diff is just calling the native console and would be simple to skip calling the native console's if it's not defined. The idea is that Web Inspector (Safari or Chrome's) are useful as REPLs and it's helpful to see all the console output in one place.

@ccheever
Copy link
Contributor Author

I'm going to resubmit this pull request because:
(a) The Travis CI build failing looks bad even though I believe that the diff is fine and the repo was just in a bad state when I submitted the PR
(b) The switchover from react-native being private to public has broken connection to my fork.

@tadeuzagallo tadeuzagallo merged commit b77fad8 into facebook:master Mar 30, 2015
ide pushed a commit to ide/react-native that referenced this pull request Apr 8, 2015
Ex. When `console.log` or similar is called, this will call
the original method, which can be quite useful.

For example, under iOS, this will log to the Safari console debugger,
which has an expandable UI for inspecting objects, etc., and is also
just useful if you are using that as a REPL.

I don't believe this incurs a meaningful performance penalty unless
the console is open, but it would be easy to stick behind a flag
if that is a problem.

A slightly different version of this patch was submitted a while ago
and merged but something got screwed up with the merge and this change
was not actually pulled in. (See the weird unrelated commits and changes
attached to the PR facebook#205)
ide pushed a commit to ide/react-native that referenced this pull request Apr 10, 2015
Ex. When `console.log` or similar is called, this will call
the original method, which can be quite useful.

For example, under iOS, this will log to the Safari console debugger,
which has an expandable UI for inspecting objects, etc., and is also
just useful if you are using that as a REPL.

I don't believe this incurs a meaningful performance penalty unless
the console is open, but it would be easy to stick behind a flag
if that is a problem.

A slightly different version of this patch was submitted a while ago
and merged but something got screwed up with the merge and this change
was not actually pulled in. (See the weird unrelated commits and changes
attached to the PR facebook#205)
ide pushed a commit to ide/react-native that referenced this pull request Apr 10, 2015
Ex. When `console.log` or similar is called, this will call
the original method, which can be quite useful.

For example, under iOS, this will log to the Safari console debugger,
which has an expandable UI for inspecting objects, etc., and is also
just useful if you are using that as a REPL.

I don't believe this incurs a meaningful performance penalty unless
the console is open, but it would be easy to stick behind a flag
if that is a problem.

A slightly different version of this patch was submitted a while ago
and merged but something got screwed up with the merge and this change
was not actually pulled in. (See the weird unrelated commits and changes
attached to the PR facebook#205)
ide pushed a commit to ide/react-native that referenced this pull request Apr 12, 2015
Ex. When `console.log` or similar is called, this will call
the original method, which can be quite useful.

For example, under iOS, this will log to the Safari console debugger,
which has an expandable UI for inspecting objects, etc., and is also
just useful if you are using that as a REPL.

I don't believe this incurs a meaningful performance penalty unless
the console is open, but it would be easy to stick behind a flag
if that is a problem.

A slightly different version of this patch was submitted a while ago
and merged but something got screwed up with the merge and this change
was not actually pulled in. (See the weird unrelated commits and changes
attached to the PR facebook#205)
ide pushed a commit to ide/react-native that referenced this pull request Apr 13, 2015
Ex. When `console.log` or similar is called, this will call
the original method, which can be quite useful.

For example, under iOS, this will log to the Safari console debugger,
which has an expandable UI for inspecting objects, etc., and is also
just useful if you are using that as a REPL.

I don't believe this incurs a meaningful performance penalty unless
the console is open, but it would be easy to stick behind a flag
if that is a problem.

A slightly different version of this patch was submitted a while ago
and merged but something got screwed up with the merge and this change
was not actually pulled in. (See the weird unrelated commits and changes
attached to the PR facebook#205)
facebook-github-bot pushed a commit that referenced this pull request Mar 18, 2019
Summary:
**Summary**

This PR introduces validation for the new `metro-config`. For now I'm keen on only validating new config, because I can see there's yet unused `convertConfig` which, I guess, defeats the purpose. Let me know otherwise.

This is still work in progress, as I need to fix some stuff upstream (e.g. recursive object validation and pretty-printing). Just letting you know I'm working on it :)

**Test plan**

Added a test.

cc CompuIves cpojer
Pull Request resolved: facebook/metro#205

Differential Revision: D14501222

Pulled By: cpojer

fbshipit-source-id: 0ab8f3ad14d6f33690d5f57fd1e7487f3a4a8c71
ayushjainrksh referenced this pull request in MLH-Fellowship/react-native Jul 2, 2020
huntie added a commit to huntie/react-native that referenced this pull request Sep 25, 2025
Summary:
Changelog: [Internal] - Update `react-native/debugger-frontend` from 8b84a77...8cce390

Resyncs `react-native/debugger-frontend` from GitHub - see `rn-chrome-devtools-frontend` [changelog](facebook/react-native-devtools-frontend@8b84a77...8cce390).

### Changelog

| Commit | Author | Date/Time | Subject |
| ------ | ------ | --------- | ------- |
| [8cce39003](facebook/react-native-devtools-frontend@8cce39003) | Alex Hunt ([email protected]) | 2025-09-25T15:05:50+01:00 | [Update Welcome panel assets and styling (facebook#208)](facebook/react-native-devtools-frontend@8cce39003) |
| [7724ccb99](facebook/react-native-devtools-frontend@7724ccb99) | Alex Hunt ([email protected]) | 2025-09-25T08:46:01+01:00 | [Disable Perf Insights subpanel, collapse sidebar by default (facebook#209)](facebook/react-native-devtools-frontend@7724ccb99) |
| [538c309a3](facebook/react-native-devtools-frontend@538c309a3) | Vitali Zaidman ([email protected]) | 2025-09-18T12:20:22+01:00 | [track when all startup resources are loaded (facebook#205)](facebook/react-native-devtools-frontend@538c309a3) |

Reviewed By: hoxyq

Differential Revision: D83248877
huntie added a commit to huntie/react-native that referenced this pull request Sep 25, 2025
Summary:
Pull Request resolved: facebook#53941

Changelog: [Internal] - Update `react-native/debugger-frontend` from 8b84a77...8cce390

Resyncs `react-native/debugger-frontend` from GitHub - see `rn-chrome-devtools-frontend` [changelog](facebook/react-native-devtools-frontend@8b84a77...8cce390).

### Changelog

| Commit | Author | Date/Time | Subject |
| ------ | ------ | --------- | ------- |
| [8cce39003](facebook/react-native-devtools-frontend@8cce39003) | Alex Hunt ([email protected]) | 2025-09-25T15:05:50+01:00 | [Update Welcome panel assets and styling (facebook#208)](facebook/react-native-devtools-frontend@8cce39003) |
| [7724ccb99](facebook/react-native-devtools-frontend@7724ccb99) | Alex Hunt ([email protected]) | 2025-09-25T08:46:01+01:00 | [Disable Perf Insights subpanel, collapse sidebar by default (facebook#209)](facebook/react-native-devtools-frontend@7724ccb99) |
| [538c309a3](facebook/react-native-devtools-frontend@538c309a3) | Vitali Zaidman ([email protected]) | 2025-09-18T12:20:22+01:00 | [track when all startup resources are loaded (facebook#205)](facebook/react-native-devtools-frontend@538c309a3) |

Reviewed By: hoxyq

Differential Revision: D83248877
facebook-github-bot pushed a commit that referenced this pull request Sep 25, 2025
Summary:
Pull Request resolved: #53941

Changelog: [Internal] - Update `react-native/debugger-frontend` from 8b84a77...8cce390

Resyncs `react-native/debugger-frontend` from GitHub - see `rn-chrome-devtools-frontend` [changelog](facebook/react-native-devtools-frontend@8b84a77...8cce390).

### Changelog

| Commit | Author | Date/Time | Subject |
| ------ | ------ | --------- | ------- |
| [8cce39003](facebook/react-native-devtools-frontend@8cce39003) | Alex Hunt ([email protected]) | 2025-09-25T15:05:50+01:00 | [Update Welcome panel assets and styling (#208)](facebook/react-native-devtools-frontend@8cce39003) |
| [7724ccb99](facebook/react-native-devtools-frontend@7724ccb99) | Alex Hunt ([email protected]) | 2025-09-25T08:46:01+01:00 | [Disable Perf Insights subpanel, collapse sidebar by default (#209)](facebook/react-native-devtools-frontend@7724ccb99) |
| [538c309a3](facebook/react-native-devtools-frontend@538c309a3) | Vitali Zaidman ([email protected]) | 2025-09-18T12:20:22+01:00 | [track when all startup resources are loaded (#205)](facebook/react-native-devtools-frontend@538c309a3) |

Reviewed By: hoxyq

Differential Revision: D83248877

fbshipit-source-id: e5d7fb009a89bd97c8aac5f0a09b5733b8249651
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants