From f82e8d4be9696fa56054a5c4df7c1f24d3bbb27e Mon Sep 17 00:00:00 2001 From: Jonas Bengtsson Date: Sun, 4 Oct 2026 16:36:45 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Add=20debug=20env?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/launch.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index 83c7cd0..7997336 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -22,6 +22,28 @@ ], "console": "integratedTerminal" }, + { + // Serve the pump node WITH the example plant environment + // attached (FR-8.2.17): closed-loop tank physics ticked + // wall-clock-paced (10 ms) alongside the Modbus server. + // A PLC (or pymodbus script) drives DO0.0/AO0.0 and reads + // back the simulated field (AI0.0 level, DI0.1 low-level + // switch); runs until stopped (Shift+F5 / Ctrl+C). + "name": "wago-sim: serve (pump node + plant env)", + "type": "debugpy", + "request": "launch", + "module": "wago_sim.cli", + "args": [ + "--verbose", + "serve", + "--node", "config/pump_node.yaml", + "--host", "127.0.0.1", + "--web", + "--port", "5020", + "--env", "envs.pump_station_env:PumpStationEnv" + ], + "console": "integratedTerminal" + }, { // Run the example FAT scenario headless and write reports. "name": "wago-sim: run (pump_station_fat)",