mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: add JetBrains IDEs debug configuration (#21965)
This commit is contained in:
parent
927d637e3f
commit
cb99785c0c
@ -60,6 +60,32 @@ You may need to update the config below with a path to your web browser. For mor
|
||||
}
|
||||
```
|
||||
|
||||
### Example JetBrains IDEs Debug Configuration
|
||||
|
||||
You can also debug your Nuxt app in JetBrains IDEs such as IntelliJ IDEA, WebStorm, or PhpStorm.
|
||||
|
||||
1. Create a new file in your project root directory and name it `nuxt.run.xml`.
|
||||
|
||||
2. Open the `nuxt.run.xml` file and paste the following debug configuration:
|
||||
|
||||
```xml
|
||||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="client: chrome" type="JavascriptDebugType" uri="http://localhost:3000" useFirstLineBreakpoints="true">
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
|
||||
<configuration default="false" name="server: nuxt" type="NodeJSConfigurationType" application-parameters="dev" path-to-js-file="$PROJECT_DIR$/node_modules/nuxi/bin/nuxi.mjs" working-dir="$PROJECT_DIR$">
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
|
||||
<configuration default="false" name="fullstack: nuxt" type="CompoundRunConfigurationType">
|
||||
<toRun name="client: chrome" type="JavascriptDebugType" />
|
||||
<toRun name="server: nuxt" type="NodeJSConfigurationType" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
||||
```
|
||||
|
||||
### Other IDEs
|
||||
|
||||
If you have another IDE and would like to contribute sample configuration, feel free to [open a PR](https://github.com/nuxt/nuxt/edit/main/docs/2.guide/3.going-further/9.debugging.md)!
|
||||
|
Loading…
Reference in New Issue
Block a user