Merge pull request #3804 from continuedev/pe/jb-ide-logs

feat(jb): add ide log config task
This commit is contained in:
Patrick Erichsen 2025-01-27 15:45:58 -08:00 • committed by GitHub
commit e625b24133
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 22 additions and 5 deletions

View file

@ -0,0 +1,17 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="IDE Logs" type="ShConfigurationType">
<option name="SCRIPT_TEXT" value="mkdir -p ./extensions/.continue-debug/logs &amp;&amp; touch ./extensions/.continue-debug/logs/prompt.log &amp;&amp; tail -f ./extensions/intellij/build/idea-sandbox/system/log/idea.log" />
<option name="INDEPENDENT_SCRIPT_PATH" value="true" />
<option name="SCRIPT_PATH" value="mkdir -p ./extensions/.continue-debug/logs &amp;&amp; touch ./extensions/.continue-debug/logs/prompt.log &amp;&amp; tail -f ./extensions/.continue-debug/logs/prompt.log" />
<option name="SCRIPT_OPTIONS" value="" />
<option name="INDEPENDENT_SCRIPT_WORKING_DIRECTORY" value="true" />
<option name="SCRIPT_WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="INDEPENDENT_INTERPRETER_PATH" value="true" />
<option name="INTERPRETER_PATH" value="/bin/zsh" />
<option name="INTERPRETER_OPTIONS" value="" />
<option name="EXECUTE_IN_TERMINAL" value="false" />
<option name="EXECUTE_SCRIPT_FILE" value="false" />
<envs />
<method v="2" />
</configuration>
</component>

View file

@ -2,6 +2,7 @@
<configuration default="false" name="Run Continue" type="CompoundRunConfigurationType">
<toRun name="Run Extension" type="GradleRunConfiguration" />
<toRun name="Start Core Dev Server" type="NodeJSConfigurationType" />
<toRun name="IDE Logs" type="ShConfigurationType" />
<toRun name="Prompt Logs" type="ShConfigurationType" />
<toRun name="Start GUI Dev Server" type="ShConfigurationType" />
<method v="2" />

View file

@ -90,10 +90,7 @@ allow for changes to your `config.json` and other files during development, with
### Viewing logs
When using the `Run Continue` task, we automatically run a script that outputs logs into the "Prompt Logs" terminal tab.
Alternatively, you can view logs for a particular IDE instance by selecting `Help` -> `Open Log in Editor` in the window
toolbar.
When using the `Run Continue` task, we automatically tail both prompt logs and IDE logs.
### Reloading changes
@ -109,7 +106,9 @@ toolbar.
- `extensions/intellij`: Breakpoints can be set in Intellij
- `gui`: You'll need to set explicit `debugger` statements in the source code, or through the browser dev tools
- `core`: Breakpoints can be set in Intellij (requires restarting the `Start Core Dev Server` task
- `core`: Breakpoints can be set in Intellij (requires restarting the `Start Core Dev Server` task)
- If you have Community Edition installed, you won't be able to use breakpoints in IntelliJ. Instead, you can start
the `Core Binary` task in VS Code and set breakpoints in that IDE.
### Available Gradle tasks