-
Notifications
You must be signed in to change notification settings - Fork 61
Update instructions to set up trace server #711
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
hoangphamEclipse
wants to merge
1
commit into
eclipse-cdt-cloud:master
Choose a base branch
from
hoangphamEclipse:update-doc
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -96,14 +96,45 @@ You can find those example applications under `examples/`. | |
|
|
||
| ### Run the Trace Server | ||
|
|
||
| In order to open traces, you need a trace server running on the same machine as the trace extension. You can download the [Eclipse Trace Compass server][tc-server] or let `yarn` download and run it: | ||
| In order to open traces, you need a trace server running on the same machine as the trace extension. There are 3 options to run the trace server. You can build and start the server manually using the server development environment, from the command line, or from the Theia application. The latter two options requires you to download a Trace Server build. See [Getting a Trace Server build][tc-server-download-guide] for more details. | ||
|
|
||
| #### Building with the server development environment | ||
|
|
||
| You can build and run the trace server manually using Eclipse. Starting it manually, has the advantage, that the open-traces | ||
| are populated with traces on the server, or the server can be started in debug mode from the server development environment to debug the server. To set up the development environment for the Trace Server, see [here][tc-server-build]. | ||
|
|
||
| Please note that you need to stop the server manually as well. | ||
|
|
||
| #### Starting the Trace Server from the command line | ||
|
|
||
| To start the Trace Server from the command line, use the following command: | ||
|
|
||
| ```bash | ||
| yarn download:server | ||
| yarn start:server | ||
| ``` | ||
|
|
||
| You can also build the trace-server yourself using Trace Compass and the Incubator. Take a look at the [instructions here][tc-server-build]. | ||
| Please note that you need a Trace Server Build before starting the server. See [Getting a Trace Server build][tc-server-download-guide] for more details. You will need to stop the server manually as well. | ||
|
|
||
| #### Starting the Trace Server from the Theia application | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In this chapter you should describe the preference setting for the trace server. User can change it to point to point to a custom trace server. |
||
|
|
||
| When you open a trace using the Theia application, the trace server will be automatically started. Alternately, you can start | ||
| the server from the application. First, open the command pallette (using `Ctrl+Shift+P` or `F1`), then use the command `Start Trace Server`. You can also use the `Stop Trace Server` command to stop the server. Otherwise, the server will be stopped | ||
| automatically when you stop the application. By default, it uses the location where `yarn download:server` stores the server for both the browser backend and electron app. | ||
|
|
||
| Please note that you need a Trace Server Build before starting the server. See [Getting a Trace Server build][tc-server-download-guide] for more details. | ||
|
|
||
| #### Getting a Trace Server build | ||
|
|
||
| You can download different builds of the Trace Server [here][tc-server]. Select the version of the Trace Server that best matches your working environment. There are different versions of the trace server for Linux, Windows and MacOS. | ||
|
|
||
| If you are working on Linux, you can simply let `yarn` download it: | ||
|
|
||
| ```bash | ||
| yarn download:server | ||
| ``` | ||
|
|
||
| If you are on other OS, you can download the server manually and extract the compressed files. Make sure that the path stored | ||
| in `yarn start:server` matches with the location where you have extracted the server build. You can also change the path of the `yarn start:server` command to switch between different server builds. | ||
|
|
||
| ### Run the example app | ||
|
|
||
|
|
@@ -385,6 +416,7 @@ pip install -r requirements.txt | |
| [tc-project]: https://www.eclipse.org/tracecompass/ | ||
| [tc-server]: https://download.eclipse.org/tracecompass.incubator/trace-server/rcp/?d | ||
| [tc-server-build]: https://www.eclipse.org/tracecompass/download.html#trace-server | ||
| [tc-server-download-guide]: #getting-a-trace-server-build | ||
| [tc-server-gh-label]: https://github.com/eclipse-cdt-cloud/theia-trace-extension/labels/Trace%20Server | ||
| [tci-code]: https://git.eclipse.org/r/admin/repos/tracecompass.incubator/org.eclipse.tracecompass.incubator | ||
| [theia-prereq]: https://github.com/eclipse-theia/theia/blob/master/doc/Developing.md#prerequisites | ||
|
|
@@ -402,4 +434,4 @@ pip install -r requirements.txt | |
| [tsp]: https://github.com/eclipse-cdt-cloud/trace-server-protocol | ||
| [tspc]: https://github.com/eclipse-cdt-cloud/tsp-typescript-client | ||
| [tsp-gh-label]: https://github.com/eclipse-cdt-cloud/theia-trace-extension/labels/trace%20server%20protocol | ||
| [yarn-issue-2821]: https://github.com/yarnpkg/yarn/issues/2821 | ||
| [yarn-issue-2821]: https://github.com/yarnpkg/yarn/issues/2821 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.