Code Monkey home page Code Monkey logo

vscode-redux-devtools's Introduction

Redux DevTools for VSCode

Visual Studio Code extension to integrate Redux Devtools into editor.

Features

Inspect redux store of your app. Like the one you may use in Chrome.

Feature

Quick Start

  • Install the extension

  • CMD + Shift + P to open Command Palette and type in Redux Devtools, select command Open Devtool to the Side.

  • In devtool pannel, click settings to set listening port and host to your remotedev server.

  • Optional, if you don't have an remotedev server running, you need to start one. (Find documentation here or see our example)

  • Additionally, you also need to compose remote redux devtool middleware into your redux store:

    import { createStore, applyMiddleware } from 'redux'
    import { composeWithDevTools } from 'remote-redux-devtools'
    
    const composeEnhancers = composeWithDevTools({
      realtime: true,
      name: 'Your Instance Name',
      hostname: 'localhost',
      port: 1024 // the port your remotedev server is running at
    })
    
    const store = createStore(
      yourReducer,
      composeEnhancers(
        applyMiddleware(/* put your middlewares here */)
      )
    )

Extension Settings

Redux Devtools contributes the following settings:

Note that these settings are used when launching the devtool. You can also set those configurations manually by click settings in the top of the devtool. (after it is launched)

  • reduxdev.hostname: The hostname your remotedev server started on.
  • reduxdev.port: The socket port for Redux Devtools to listen.

Known Issues

  • redux-devtools-core can not persist settings inside vscode webview

License

MIT

powered by redux-devtools.

vscode-redux-devtools's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vscode-redux-devtools's Issues

Cannot make this work with Expo

I am debugging with Expo and a real iOS device. If I understand the docs correctly, I need to run remotedev-server, which I did by creating the following file and running with Node:

const remotedev = require('remotedev-server');
remotedev({
  hostname: MY_LAN_IP,
  port: 19080,
});

I also changed my store enhancers like so:

  composeEnhancers =
    require('redux-devtools-extension').composeWithDevTools({
      realtime: true,
      name: 'Test App',
      hostname: MY_LAN_IP,
      port: 19080,
      serialize: {
        options: {
          symbol: true,
        },
      },
    });

I used to debug with React Native Debugger, and I only had 'serialize' property defined. I did not have to run a remotedev-server instance. Everything was working fine.

I run packager, then open the app on my phone and go to http://MY_LAN_IP:19080 in Chrome, it opens up the monitor, but everything is empty and the state is undefined. Needless to say, pressing Connect in the VS extension after setting hostname and port also does nothing.

Is this a bug in remotedev-server or something else, or did I not set it up properly?

does it work in RN with Redux toolkit ?

import {configureStore} from '@reduxjs/toolkit';
import devToolsEnhancer from 'remote-redux-devtools';
let store = configureStore({
  reducer: persistedReducer,
  middleware(getDefaultMiddleware) {
    return getDefaultMiddleware({
      serializableCheck: {
        ignoredActions: [FLUSH, REHYDRATE, PAUSE, PERSIST, PURGE, REGISTER],
      },
    })
      .prepend(api.middleware)
      .concat(rtkQueryErrorLogger);
  },
  devTools: false,
  enhancers: [
    devToolsEnhancer({
      realtime: true,
      port: 8081,
    }),
  ],
});

websocket do not connect ...

Default values do not work

Using V1.0.2 of the extension.

  1. localhost is spelled wrong
    Screen Shot 2020-02-06 at 1 14 58 PM
  2. When I press Connect, I see an error about 8000 (default value, didn't change anything) not being a number
    Screen Shot 2020-02-06 at 1 15 11 PM

Error in README and in description at marketplace.visualstudio.com

Hello.
You have error in your README.md file and in description at marketplace.visualstudio.com, last point of Quick start has this listing:

let composeEnhancers = composeWithDevTools({
    realtime: true,
    name: 'Your Instance Name',
    host: '127.0.0.1',
    port: 1024, // the port your remotedev server is running at
});

but RemoteReduxDevToolsOptions which is pushed into composeWithDevTools hasn't field host, it has field hostname.

Question about capability

Hello,

Would this tool work with an Angular app that has ngrx(basically redux for Angular)? I'm not allowed to install Chrome extensions so I wonder if this would be a good alternative for debugging redux for an Angular app.

state is undefined

I installed the application, configured the port, but can not see anything in the state. Restart does not help.

environment:
vsCode 1.12.1
typescript: 2.3.2
node: 7.4.0
webpack: 2.5.1

Screenshots:
screenshot_142
screenshot_143
screenshot_144

'Connect' doesn't seem to do anything

Regardless of settings. It'd be nice if there were some kind of feedback—I guess it's failing, but there's no error or messaging and it doesn't manage to connect.

I've tried using a remote server and local, but both seem to fail.

Adopt VS Code's 'asWebviewUri' API

Hi, I maintain VS Code's Webview API

Issue

Our telemetry suggests that your extension uses webviews and may be loading resources in these webviews using hardcoded vscode-resource: URIs. These URIs have some important limitations and don't work properly when VS Code is run in a browser. We are also making changes in the desktop version of VS Code that may cause these URIs to not work properly in future versions of VS Code.

While we are making our best effort to continue support existing webview extensions that use vscode-resource: URIs on desktop versions of VS Code, we will not able to fully support all uses cases.

Fix

To ensure that your extension continues to work in as many environments as possible—including on web and remotely—please:

These APIs shipped around 2 years ago so they should be available in all modern versions of VS Code. You can find additional information about the issue here: microsoft/vscode#97962

Let me know if you have any questions about this change

Using vscode-redux-devtools over an existing chrome debug connection

I'm trying to debug a polymer/redux application with visual studio, and I'm using the chrome debug extension already. I was wondering whether it is (at least theoretically?) feasible to avoid a separate server, and instead inspect the redux state inside the chrome instance directly via the existing connection?

vscode.previewHtml will be deprecated and removed soon.

Since last vscode update, I got next warning in vscode, please fix it! I really like this extension 😄

Extension 'jingkaizhao.vscode-redux-devtools' uses the 'vscode.previewHtml' command which is deprecated and will be removed soon. Please file an issue against this extension to update to use VS Code's webview API.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.