zalmoxisus / redux-devtools-extension

Redux DevTools extension.
MIT License
13.5k stars 1.01k forks source link

How to use when I'm developing chrome extension #335

Open victorvoid opened 7 years ago

victorvoid commented 7 years ago

I tried to use it in my chrome extension, but in my popup console:

window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || window.__REDUX_DEVTOOLS_EXTENSION__

undefined

But in my devtools on popup there is "redux"(the redux-devtools-extension) :crying_cat_face:

It's not possible ?

jhen0409 commented 7 years ago

We used to have a solution for that (example) but it's no longer work on Chrome (See https://github.com/zalmoxisus/crossbuilder/issues/48), so currently we recommend to use remote-redux-devtools for developing chrome extension.

zacacollier commented 7 years ago

@jhen0409 @zalmoxisus Could you elaborate? I'm not really sure how to hook in to the extension from remote-redux-devtools. I've tried running remote-redux-devtools with a custom host and port but to no avail. Sorry if I'm missing something really obvious here 😅

zalmoxisus commented 7 years ago

@zacacollier, there should be a button on the bottom to open Remote DevTools: image

There you can set the hostname and port if needed.

victorvoid commented 7 years ago

I used the remote-redux-devtools to solve my problem! Thanks everyone.

jhen0409 commented 7 years ago

It looks works fine on latest version of Chrome (example), not sure if it is recent updates. 😂

2017-05-03 11 32 59
zalmoxisus commented 7 years ago

Wow, that's good to know. Though I remember I romoved some parts in the last releases, so it should have some issues. I'll investigate this. We should be able to inspect firefox extensions as well now.