Skip to content

Instantly share code, notes, and snippets.

@mvdbeek
Created July 7, 2019 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvdbeek/5e8683c09a589ce4ed9b7a300cff0856 to your computer and use it in GitHub Desktop.
Save mvdbeek/5e8683c09a589ce4ed9b7a300cff0856 to your computer and use it in GitHub Desktop.
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

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