From 367696788b9f060759eb9592f46751a9f6ebaf62 Mon Sep 17 00:00:00 2001 From: iomgaa Date: Sun, 24 Aug 2025 15:07:26 +0800 Subject: [PATCH] =?UTF-8?q?config:=20=E6=9B=B4=E6=96=B0=E5=BC=80=E5=8F=91?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .gitignore: 添加日志文件忽略规则(**/*.log) - .vscode/launch.json: 为PDF解析器添加调试配置,支持不同参数测试 --- .gitignore | 1 + .vscode/launch.json | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/.gitignore b/.gitignore index 4f708a3..8f26d69 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ wheels/ dataset/ docs/CLAUDE* .DS_Store +**/*.log diff --git a/.vscode/launch.json b/.vscode/launch.json index 8972fba..f44538e 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -31,6 +31,24 @@ "console": "integratedTerminal", "python": "${workspaceFolder}/.venv/bin/python", "args": ["--mimic_paper_path", "dataset/mimic.csv", "--parallel", "5"] + }, + { + "name": "调试 pdf_parser.py", + "type": "debugpy", + "request": "launch", + "program": "${workspaceFolder}/pdf_parser.py", + "console": "integratedTerminal", + "python": "${workspaceFolder}/.venv/bin/python", + "args": [] + }, + { + "name": "调试 pdf_parser.py (指定参数)", + "type": "debugpy", + "request": "launch", + "program": "${workspaceFolder}/pdf_parser.py", + "console": "integratedTerminal", + "python": "${workspaceFolder}/.venv/bin/python", + "args": ["--pdf-dir", "dataset/pdfs", "--parallel", "3", "--markdown-dir", "dataset/markdowns"] } ] } \ No newline at end of file