From 38ae68a3715c98742b2d78a823372102d861ac8b Mon Sep 17 00:00:00 2001 From: drfho Date: Tue, 21 Nov 2023 08:42:43 +0100 Subject: [PATCH] added more vscode configs --- .gitignore | 5 +++-- .vscode/launch.json | 25 +++++++++++++++++++++++++ .vscode/tasks.json | 1 + 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 39953fdc..077bad22 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ *.egg-info/ *.pyc -.vscode/ +//.vscode/ Products/zms/plugins/www/zms-all.min.js Products/zms/plugins/www/i18n/*.js Products/zms/__pycache__/*.pyc -dist/ \ No newline at end of file +dist/ +docker/BAK/ \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json index 9cd95c94..07bd3bb4 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -26,6 +26,31 @@ "action": "openExternally", }, }, + { + "name": "Python: ZMS4-Py2-ZEO", + "type": "python", + "request": "launch", + "module": "Zope2.Startup.run", + "justMyCode": false, + "console": "integratedTerminal", + "args": [ + "-C/home/zope/instance/zms4_zeo/etc/zope_8087.conf", + "-Xdebug-mode=on", + ], + "env": { + "PYTHONUNBUFFERED":"1", + "CONFIG_FILE": "/home/zope/instance/zms4_zeo/etc/zope_8087.conf", + "INSTANCE_HOME": "/home/zope/instance/zms4_zeo", + "CLIENT_HOME": "/home/zope/instance/zms4_zeo", + "PYTHON": "/home/zope/vpy27/bin/python", + "SOFTWARE_HOME": "/home/zope/vpy27/bin/" + }, + "serverReadyAction":{ + "pattern":"Zope Ready to handle requests", + "uriFormat": "http://127.0.0.1:8087/manage_main", + "action": "openExternally", + }, + }, { "name": "Docker: ZMS4-Py2-Dev", "type": "python", diff --git a/.vscode/tasks.json b/.vscode/tasks.json index ae2bd754..afdfedab 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -1,4 +1,5 @@ { + // https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ms-python/vsextensions/python/2022.2.1924087327/vspackage "version": "2.0.0", "tasks": [ {