I'm using PhpStorm
in Mac to code and i want to debug my errors. I have a message in my terminal to set the editor for React Native tools.
PRO TIP
When you see Red Box with stack trace, you can click any
stack frame to jump to the source file. The packager will launch your
editor of choice. It will first look at REACT_EDITOR environment
variable, then at EDITOR.
To set it up, you can add something like
export REACT_EDITOR=atom to your ~/.bashrc or ~/.zshrc depending on
which shell you use.
I've added these lines to ~/.bashrc but nothing happened when i click on the error :
export PATH=$PATH:/usr/local/bin/pstorm
export REACT_EDITOR=pstorm
How can i set correctly REACT_EDITOR
to PhpStorm
so that when i click on the error it jumps to my code?
question from:
https://stackoverflow.com/questions/65599117/how-to-set-react-editor-to-phpstorm-so-that-when-you-click-on-the-error-it-jumps 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…