小编Hei*_*inz的帖子

Chrome Devtools 中没有链接到 React 组件的源代码

我使用create-react-app 16 。["react": "^16.8.4", "react-scripts": "^2.1.8"] \n我阅读了Ben Schwarz使用Chrome 开发工具分析 React 性能的博客:\n https://building.calibreapp.com/debugging-react-performance-with-react-16-and-chrome-devtools-c90698a522ad \n他建议使用source-maps导出你的 JS 。\n当他进行表演时跟踪,然后单击“用户计时”部分中的给定反应组件,特定组件信息显示在“自下而上”部分中,并在右侧带有**指向源代码**的蓝色链接。当我单击 React 组件时,此链接不会显示。当我单击“评估脚本”等组件时,右侧会显示蓝色链接。

\n\n

源映射不应该在开发中与create-react-app 16一起“开箱即用”吗?\n我只想在开发中使用Chrome 开发工具进行源映射。源映射在 Chrome 浏览器中激活。我错过了什么?\n提前谢谢

\n\n

PS:由于我还没有获得 10 点声望点,所以我\xc2\xb4m 不打算使用屏幕截图,这在这种情况下让事情变得不太容易。不过,我希望我能够充分解释我的问题。

\n

performance-testing google-chrome-devtools source-maps reactjs create-react-app

5
推荐指数
1
解决办法
5539
查看次数

主管套接字错误:取消链接陈旧套接字 /tmp/supervisor.sock

我在共享 Debian 服务器上安装了Supervisor 。当我运行时: supervisord -c supervisord.conf 我不断收到此错误,直到我杀死它:Unlinking stale socket /tmp/supervisor.sock
当我运行时supervisorctl status,我得到:
unix:///tmp/supervisor.sock no such file
我的supervisord.conf 文件是这样的(我没有更改任何内容):

[unix_http_server]
file=/tmp/supervisor.sock     ; (the path to the socket file)
;chmod=0700                 ; socket file mode (default 0700)

[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB        ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10           ; (num of main logfile rotation backups;default 10)
loglevel=info                ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false               ; (start …
Run Code Online (Sandbox Code Playgroud)

sockets shared-hosting unlink supervisord laravel

2
推荐指数
1
解决办法
8063
查看次数