Expo无法从VS Code调试器进行热重装

时间:2019-03-21 21:26:26

标签: react-native visual-studio-code

我正在使用VS Code开发我的React Native应用,而React Native Tools调试器则在“在指数中调试”上运行。实时重新加载是可行的,但是当我启用热重新加载(禁用实时重新加载后)时,不会发生热重新加载。

我确定您想查看各种设置。不确定什么重要,所以这里有一些事情:

// relevant debug config from launch.json
    {
      "name": "Debug in Exponent",
      "program": "${workspaceRoot}/.vscode/launchReactNative.js",
      "type": "reactnative",
      "request": "launch",
      "platform": "exponent",
      "sourceMaps": true,
      "outDir": "${workspaceRoot}/.vscode/.react"
    }

// .expo/packager-info.json
{
  "devToolsPort": 19002,
  "expoServerPort": 19000,
  "packagerPort": 8081,
  "packagerPid": null,
  "expoServerNgrokUrl": "https://zr-j4p.tuzmusic.tuz1app.exp.direct",
  "packagerNgrokUrl": "https://packager.zr-j4p.tuzmusic.tuz1app.exp.direct",
  "ngrokPid": 5404
}

// .expo/settings.json
{
  "hostType": "lan",
  "lanType": "ip",
  "dev": true,
  "minify": false,
  "urlRandomness": "zr-j4p"
}

0 个答案:

没有答案