Я могу запускать команды Snakemake в Visual Studio Code. Но я не могу приостанавливать код VS в точках останова при выполнении команд Snakemake.
Это мой файл змейки:
rule all:
input: "hello/world.txt"
rule hello_world:
output: "hello/world.txt"
run:
shell('python printhello.py')
Это printhello.py:
print('hello world! file output')
pt = 1
print('After break point.')
У меня есть точка останова во второй строке. Код VS здесь не приостанавливается.
Это файл launch.json:
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "SnakeDebug",
"type": "python",
"request": "launch",
"program": "C:/AV/pypsa_fes_mamba/pypsa_fes/Scripts/snakemake.exe",
"args": [
"--snakefile","pipeline1_01.txt",
"--cores","1"
],
"cwd":"${workspaceFolder}",
"pythonPath": "C:/AV/pypsa_fes_mamba/pypsa_fes/python.exe",
"console": "integratedTerminal",
"justMyCode": false,
"trace":"verbose"
}
]
}
Подробнее здесь: https://stackoverflow.com/questions/778 ... tudio-code
Как отлаживать змеиный файл змейки в коде Visual Studio? ⇐ Python
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение