-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebug_execution_engine_simple.py
More file actions
60 lines (45 loc) · 1.8 KB
/
debug_execution_engine_simple.py
File metadata and controls
60 lines (45 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/env python3
"""Simplified debug script - easier to set breakpoints.
This version focuses on ONE thing at a time.
TO RUN IN DEBUG MODE:
1. Open this file in your IDE
2. Set breakpoint on line 30 (where ExecutionResult is created)
3. Press F5 (or Debug button)
4. Select "Python: Debug Simple Version" configuration
TO RUN NORMALLY:
PYTHONPATH=/home/skumar/DaatScience/Sentinel .venv/bin/python debug_execution_engine_simple.py
"""
import sys
from pathlib import Path
# Add project root to path
project_root = Path(__file__).parent
sys.path.insert(0, str(project_root))
from datetime import datetime, timezone
print("=" * 80)
print("SIMPLIFIED DEBUG: ExecutionResult Creation")
print("=" * 80)
print("\n🔴 SET YOUR BREAKPOINT ON THE NEXT LINE (line 20)")
print("=" * 80)
# =============================================================================
# BREAKPOINT HERE: Set breakpoint on the next line
# =============================================================================
from src.agents.schemas import ExecutionStatus, ExecutionResult
print("\n✅ Imports successful")
# =============================================================================
# BREAKPOINT HERE: Set breakpoint on the next line
# =============================================================================
print("\n🔴 SET YOUR BREAKPOINT ON THE NEXT LINE (line 30)")
print("=" * 80)
result = ExecutionResult(
action_id="test-action-001",
status=ExecutionStatus.SUCCESS,
started_at=datetime.now(timezone.utc),
completed_at=datetime.now(timezone.utc),
)
print("\n✅ ExecutionResult created:")
print(f" action_id: {result.action_id}")
print(f" status: {result.status}")
print(f" started_at: {result.started_at}")
print("\n" + "=" * 80)
print("✅ Debug complete - check your breakpoint worked!")
print("=" * 80)