Files
wago-modbustcp-simulator-py/.vscode/launch.json
T
2026-10-03 09:46:11 +02:00

69 lines
2.5 KiB
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": [
{
// Run the Modbus TCP server against the example pump-station
// node. Listens on 127.0.0.1:5020 (use 502 for a real FAT
// bench; 502 requires admin privileges on Windows/Linux).
"name": "wago-sim: serve (pump node)",
"type": "debugpy",
"request": "launch",
"module": "wago_sim.cli",
"args": [
"serve",
"--node", "config/pump_node.yaml",
"--host", "127.0.0.1",
"--port", "5020"
],
"console": "integratedTerminal"
},
{
// Run the example FAT scenario headless and write reports.
"name": "wago-sim: run (pump_station_fat)",
"type": "debugpy",
"request": "launch",
"module": "wago_sim.cli",
"args": [
"run",
"--node", "config/pump_node.yaml",
"--scenario", "scenarios/pump_station_fat.yaml",
"--report-jsonl", "out/pump_station_fat.jsonl",
"--report-csv", "out/pump_station_fat.csv"
],
"console": "integratedTerminal"
},
{
// Validate a scenario file without running it.
"name": "wago-sim: validate (pump_station_fat)",
"type": "debugpy",
"request": "launch",
"module": "wago_sim.cli",
"args": [
"validate",
"--scenario", "scenarios/pump_station_fat.yaml"
],
"console": "integratedTerminal"
},
{
// Debug a single scenario step or engine logic against any
// scenario; pick the arguments at launch time.
"name": "wago-sim: run (pick scenario + args)",
"type": "debugpy",
"request": "launch",
"module": "wago_sim.cli",
"args": "${command:pickArgs}",
"console": "integratedTerminal"
},
{
"name": "Python Debugger: Current File with Arguments",
"type": "debugpy",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal",
"args": "${command:pickArgs}"
}
]
}