mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Merge pull request #10488 from kxk302/doc
Update link for Galaxy configuration file in Galaxy debug document
This commit is contained in:
@@ -5,8 +5,7 @@
|
||||
|
||||
The following instructions assume that you have cloned your Galaxy fork into the `~/galaxy` directory and have created a VS Code workspace per instructions [here](./debugging_tests.md)
|
||||
|
||||
1. Download this [ini](https://raw.githubusercontent.com/galaxyproject/galaxy/release_17.09/config/galaxy.ini.sample) file and and save it as ~/galaxy/config/galaxy.ini.old
|
||||
2. Add the following code snippet to `~/galaxy/.vscode/launch.json` (create the file if it does not already exist)
|
||||
1. Add the following code snippet to `~/galaxy/.vscode/launch.json` (create the file if it does not already exist)
|
||||
```
|
||||
{
|
||||
"version": "0.2.0",
|
||||
@@ -25,7 +24,7 @@ The following instructions assume that you have cloned your Galaxy fork into the
|
||||
"program": "${workspaceFolder}/scripts/paster.py",
|
||||
"args": [
|
||||
"serve",
|
||||
"config/galaxy.ini.old",
|
||||
"config/galaxy_vscode.ini",
|
||||
"--log-file",
|
||||
"galaxy.log",
|
||||
],
|
||||
@@ -34,8 +33,8 @@ The following instructions assume that you have cloned your Galaxy fork into the
|
||||
}
|
||||
|
||||
```
|
||||
3. Re-start VS Code
|
||||
4. Add a breakpoint somewhere in your code
|
||||
5. Select Run and Debug on Activity Bar, on the far left hand side. In the RUN AND DEBUG drop down, select Galaxy debug (galaxy), and click the Start Debugging button (green arrow)
|
||||
6. Galaxy should stop right on the break point you added.
|
||||
7. Enjoy your debugging session :-)
|
||||
2. Re-start VS Code
|
||||
3. Add a breakpoint somewhere in your code
|
||||
4. Select Run and Debug on Activity Bar, on the far left hand side. In the RUN AND DEBUG drop down, select Galaxy debug (galaxy), and click the Start Debugging button (green arrow)
|
||||
5. Galaxy should stop right on the break point you added.
|
||||
6. Enjoy your debugging session :-)
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
[server:main]
|
||||
|
||||
# The internal HTTP server to use. Currently only Paste is provided.
|
||||
use = egg:Paste#http
|
||||
|
||||
# The port on which to listen.
|
||||
port = 8080
|
||||
|
||||
# Define the gzip filter.
|
||||
[filter:gzip]
|
||||
use = egg:Paste#gzip
|
||||
|
||||
# Define the proxy-prefix filter.
|
||||
[filter:proxy-prefix]
|
||||
use = egg:PasteDeploy#prefix
|
||||
|
||||
[app:main]
|
||||
|
||||
# The factory for the WSGI application. This should not be changed.
|
||||
paste.app_factory = galaxy.web.buildapp:app_factory
|
||||
|
||||
# The URL of the page to display in Galaxy's middle pane when loaded.
|
||||
welcome_url = /static/welcome.html
|
||||
|
||||
# Serve static content, which must be enabled if you're not serving it via a proxy server.
|
||||
static_enabled = True
|
||||
static_cache_time = 360
|
||||
static_dir = static/
|
||||
static_robots_txt = static/robots.txt
|
||||
|
||||
Reference in New Issue
Block a user