[英]How to preconfigure the debug log level filter in IntelliJ Idea (PhpStorm/WebStorm) when running React Native
I have a React Native project I'm running from PhpStorm using a run configuration, which launches Metro, launch-ios, Chrome debug etc. which all works fine.我有一个 React Native 项目,我使用运行配置从 PhpStorm 运行,它启动 Metro、launch-ios、Chrome 调试等,一切正常。
The JS logs appear in the console of the IDE under the name of "iOS Build " but the default filter doesn't include debug logs. JS 日志出现在 IDE 的控制台中,名称为“iOS Build”,但默认过滤器不包含调试日志。 I can click "Filter > Debug" and turn it on but then it resets back to unticked ever time I restart the debugger.
我可以单击“过滤器>调试”并将其打开,但每次我重新启动调试器时它都会重置为未选中状态。 Presently I am restarting the debugger a lot because I am debugging the first-boot cycle of the app.
目前我正在重新启动调试器,因为我正在调试应用程序的首次启动周期。
In the documentation for other run/debug configs, IntelliJ has log options (which they are recently changing to a separate panel).在其他运行/调试配置的文档中,IntelliJ 具有日志选项(他们最近将其更改为单独的面板)。 I think you can preset the filters there: https://www.jetbrains.com/help/idea/setting-log-options.html#d3ebaf91
我想你可以在那里预设过滤器: https://www.jetbrains.com/help/idea/setting-log-options.html#d3ebaf91
However for the React Native plugin, the run/debug config pane doesn't include any options for drilling down into the logs.但是对于 React Native 插件,运行/调试配置窗格不包含任何用于深入查看日志的选项。 https://www.jetbrains.com/help/phpstorm/2022.1/react-native.html#ws_react_native_run_and_debug
https://www.jetbrains.com/help/phpstorm/2022.1/react-native.html#ws_react_native_run_and_debug
What I want is for the Debug Level to be or remain ticked as well by default when I run the configuration.我想要的是在我运行配置时默认情况下调试级别也被选中或保持选中状态。
Is there some configuration file perhaps with extra options that are not represented in this plugins GUI?是否有一些配置文件可能带有此插件 GUI 中未表示的额外选项?
Can I get the IDE to remember the state of the Debug pane generally?我可以让 IDE 记住调试窗格的 state 吗? For example also I keep having to drag the columns around each time to my preferred layout.
例如,我每次都不得不将列拖到我喜欢的布局中。
I know I could view the logs in Chrome, but I prefer headless mode and an IDE-centric workflow.我知道我可以在 Chrome 中查看日志,但我更喜欢无头模式和以 IDE 为中心的工作流程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.