Skip to content

Commit

Permalink
Merge pull request #3804 from continuedev/pe/jb-ide-logs
Browse files Browse the repository at this point in the history
feat(jb): add ide log config task
  • Loading branch information
Patrick-Erichsen authored Jan 27, 2025
2 parents 9a00c1d + 27ba6a2 commit e625b24
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
17 changes: 17 additions & 0 deletions extensions/intellij/.run/IDE Logs.run.xml
Original file line number Diff line number Diff line change
@@ -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>
1 change: 1 addition & 0 deletions extensions/intellij/.run/Run Continue.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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" />
Expand Down
9 changes: 4 additions & 5 deletions extensions/intellij/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit e625b24

Please sign in to comment.