Created
July 7, 2019 12:33
-
-
Save mvdbeek/5e8683c09a589ce4ed9b7a300cff0856 to your computer and use it in GitHub Desktop.
vscode galaxy debug configurations
This file contains 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
{ | |
"name": "Galaxy debug", | |
"type": "python", | |
"request": "launch", | |
"program": "${workspaceFolder}/scripts/paster.py", | |
"args": [ | |
"serve", | |
"config/galaxy.ini" | |
], | |
"pythonPath": "${workspaceFolder}/.venv3/bin/python" | |
}, | |
{ | |
"name": "Galaxy test API", | |
"type": "python", | |
"request": "launch", | |
"program": "${workspaceFolder}/.venv3/bin/pytest", | |
"args": [ | |
"test/api", | |
"-k", | |
"test_delete_user" | |
], | |
"pythonPath": "${workspaceFolder}/.venv3/bin/python" | |
}, |
I'm having trouble debugging now (it worked before)...
launch.json
{
"name": "Galaxy debug",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/scripts/paster.py",
"args": [
"serve",
"config/galaxy.ini"
],
"pythonPath": "${workspaceFolder}/.venv/bin/python"
},
Terminal output
cd /Users/jraysajulga/Projects/galaxy-wf ; env PYTHONIOENCODING=UTF-8 PYTHONUNBUFFERED=1 /Users/jraysajulga/Projects/galaxy-wf/.venv/bin/python /Users/jraysajulga/.vscode/extensions/ms-python.python-2019.8.30787/pythonFiles/ptvsd_launcher.py --default --client --host localhost --port 54147 /Users/jraysajulga/Projects/galaxy-wf/scripts/paster.py serve config/galaxy.ini
source /Users/jraysajulga/Projects/galaxy-wf/.venv/bin/activate
I receive this prompt after a few seconds:
Timeout waiting for debugger connection
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You'll need to use the old galaxy.ini file for this, you can fetch it at https://raw.githubusercontent.com/galaxyproject/galaxy/release_17.09/config/galaxy.ini.sample