Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
vscode galaxy debug configurations
{
"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"
},
@mvdbeek
Copy link
Author

mvdbeek commented Jul 7, 2019

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

@jraysajulga
Copy link

jraysajulga commented Aug 21, 2019

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