491 lines
12 KiB
JSON
491 lines
12 KiB
JSON
{
|
|
"execution_info": {
|
|
"timestamp": "2025-06-05T18:11:18.061505Z",
|
|
"total_queries": 11,
|
|
"successful": 9,
|
|
"failed": 2,
|
|
"input_file": "debug_templates\\error_debug.json"
|
|
},
|
|
"results": [
|
|
{
|
|
"index": 0,
|
|
"input": "bad_mask = 255.240.0.3",
|
|
"output": "255.240.0.3",
|
|
"result_type": "FourBytes",
|
|
"success": true,
|
|
"error": null,
|
|
"output_raw": {
|
|
"parts": [
|
|
[
|
|
"info",
|
|
"bad_mask = 255.240.0.3"
|
|
]
|
|
],
|
|
"formatted_text": "[info]bad_mask = 255.240.0.3",
|
|
"tag_info": {
|
|
"error": {
|
|
"fg": "#ff6b6b",
|
|
"font": "bold"
|
|
},
|
|
"result": {
|
|
"fg": "#abdbe3"
|
|
},
|
|
"symbolic": {
|
|
"fg": "#82aaff"
|
|
},
|
|
"numeric": {
|
|
"fg": "#c3e88d"
|
|
},
|
|
"equation": {
|
|
"fg": "#c792ea"
|
|
},
|
|
"info": {
|
|
"fg": "#ffcb6b"
|
|
},
|
|
"comment": {
|
|
"fg": "#546e7a"
|
|
},
|
|
"class_hint": {
|
|
"fg": "#888888"
|
|
},
|
|
"type_hint": {
|
|
"fg": "#6a6a6a"
|
|
},
|
|
"custom_type": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"hex": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"bin": {
|
|
"fg": "#4fc3f7"
|
|
},
|
|
"ip": {
|
|
"fg": "#fff176"
|
|
},
|
|
"date": {
|
|
"fg": "#ff8a80"
|
|
},
|
|
"chr_type": {
|
|
"fg": "#80cbc4"
|
|
},
|
|
"helper": {
|
|
"fg": "#ffd700",
|
|
"font": "italic"
|
|
}
|
|
}
|
|
},
|
|
"display_class": "[FourBytes]"
|
|
},
|
|
{
|
|
"index": 1,
|
|
"input": "IP4Mask(bad_mask)",
|
|
"output": "None",
|
|
"result_type": "NoneType",
|
|
"success": false,
|
|
"error": "\n❌ Máscara inválida: 255.240.0.3 (0xFFF00003)\n\n🔍 Análisis binario: 11111111.11110000.00000000.00000011\n Los bits deben ser contiguos: todos los 1s seguidos de todos los 0s\n\n✅ Ejemplos de máscaras válidas:\n /24 → 255.255.255.0 (11111111.11111111.11111111.00000000)\n /20 → 255.240.0.0 (11111111.11110000.00000000.00000000)\n /16 → 255.255.0.0 (11111111.11111111.00000000.00000000)\n /12 → 255.240.0.0 (11111111.11110000.00000000.00000000)\n\n💡 ¿Quizás querías usar 255.240.0.0 en lugar de 255.240.0.3?\n",
|
|
"output_raw": {
|
|
"parts": [
|
|
[
|
|
"error",
|
|
"Error: \n❌ Máscara inválida: 255.240.0.3 (0xFFF00003)\n\n🔍 Análisis binario: 11111111.11110000.00000000.00000011\n Los bits deben ser contiguos: todos los 1s seguidos de todos los 0s\n\n✅ Ejemplos de máscaras válidas:\n /24 → 255.255.255.0 (11111111.11111111.11111111.00000000)\n /20 → 255.240.0.0 (11111111.11110000.00000000.00000000)\n /16 → 255.255.0.0 (11111111.11111111.00000000.00000000)\n /12 → 255.240.0.0 (11111111.11110000.00000000.00000000)\n\n💡 ¿Quizás querías usar 255.240.0.0 en lugar de 255.240.0.3?\n"
|
|
]
|
|
],
|
|
"formatted_text": "[error]Error: \n❌ Máscara inválida: 255.240.0.3 (0xFFF00003)\n\n🔍 Análisis binario: 11111111.11110000.00000000.00000011\n Los bits deben ser contiguos: todos los 1s seguidos de todos los 0s\n\n✅ Ejemplos de máscaras válidas:\n /24 → 255.255.255.0 (11111111.11111111.11111111.00000000)\n /20 → 255.240.0.0 (11111111.11110000.00000000.00000000)\n /16 → 255.255.0.0 (11111111.11111111.00000000.00000000)\n /12 → 255.240.0.0 (11111111.11110000.00000000.00000000)\n\n💡 ¿Quizás querías usar 255.240.0.0 en lugar de 255.240.0.3?\n",
|
|
"tag_info": {
|
|
"error": {
|
|
"fg": "#ff6b6b",
|
|
"font": "bold"
|
|
},
|
|
"result": {
|
|
"fg": "#abdbe3"
|
|
},
|
|
"symbolic": {
|
|
"fg": "#82aaff"
|
|
},
|
|
"numeric": {
|
|
"fg": "#c3e88d"
|
|
},
|
|
"equation": {
|
|
"fg": "#c792ea"
|
|
},
|
|
"info": {
|
|
"fg": "#ffcb6b"
|
|
},
|
|
"comment": {
|
|
"fg": "#546e7a"
|
|
},
|
|
"class_hint": {
|
|
"fg": "#888888"
|
|
},
|
|
"type_hint": {
|
|
"fg": "#6a6a6a"
|
|
},
|
|
"custom_type": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"hex": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"bin": {
|
|
"fg": "#4fc3f7"
|
|
},
|
|
"ip": {
|
|
"fg": "#fff176"
|
|
},
|
|
"date": {
|
|
"fg": "#ff8a80"
|
|
},
|
|
"chr_type": {
|
|
"fg": "#80cbc4"
|
|
},
|
|
"helper": {
|
|
"fg": "#ffd700",
|
|
"font": "italic"
|
|
}
|
|
}
|
|
},
|
|
"display_class": "[NoneType]"
|
|
},
|
|
{
|
|
"index": 2,
|
|
"input": "engine.last_result",
|
|
"output": "None",
|
|
"result_type": "NoneType",
|
|
"success": true,
|
|
"error": null,
|
|
"exec_result": null
|
|
},
|
|
{
|
|
"index": 3,
|
|
"input": "invalid_ip = 300.1.1.1",
|
|
"output": "None",
|
|
"result_type": "NoneType",
|
|
"success": false,
|
|
"error": "Error en asignación: Elemento inválido: '300'",
|
|
"output_raw": {
|
|
"parts": [
|
|
[
|
|
"error",
|
|
"Error: Error en asignación: Elemento inválido: '300'"
|
|
]
|
|
],
|
|
"formatted_text": "[error]Error: Error en asignación: Elemento inválido: '300'",
|
|
"tag_info": {
|
|
"error": {
|
|
"fg": "#ff6b6b",
|
|
"font": "bold"
|
|
},
|
|
"result": {
|
|
"fg": "#abdbe3"
|
|
},
|
|
"symbolic": {
|
|
"fg": "#82aaff"
|
|
},
|
|
"numeric": {
|
|
"fg": "#c3e88d"
|
|
},
|
|
"equation": {
|
|
"fg": "#c792ea"
|
|
},
|
|
"info": {
|
|
"fg": "#ffcb6b"
|
|
},
|
|
"comment": {
|
|
"fg": "#546e7a"
|
|
},
|
|
"class_hint": {
|
|
"fg": "#888888"
|
|
},
|
|
"type_hint": {
|
|
"fg": "#6a6a6a"
|
|
},
|
|
"custom_type": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"hex": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"bin": {
|
|
"fg": "#4fc3f7"
|
|
},
|
|
"ip": {
|
|
"fg": "#fff176"
|
|
},
|
|
"date": {
|
|
"fg": "#ff8a80"
|
|
},
|
|
"chr_type": {
|
|
"fg": "#80cbc4"
|
|
},
|
|
"helper": {
|
|
"fg": "#ffd700",
|
|
"font": "italic"
|
|
}
|
|
}
|
|
},
|
|
"display_class": "[NoneType]"
|
|
},
|
|
{
|
|
"index": 4,
|
|
"input": "hasattr(engine, 'last_error')",
|
|
"output": "False",
|
|
"result_type": "bool",
|
|
"success": true,
|
|
"error": null,
|
|
"exec_result": false
|
|
},
|
|
{
|
|
"index": 5,
|
|
"input": "16#GG",
|
|
"output": "16",
|
|
"result_type": "Integer",
|
|
"success": true,
|
|
"error": null,
|
|
"output_raw": {
|
|
"parts": [
|
|
[
|
|
"symbolic",
|
|
"16"
|
|
],
|
|
[
|
|
"class_hint",
|
|
"[Integer]"
|
|
]
|
|
],
|
|
"formatted_text": "[symbolic]16[class_hint][Integer]",
|
|
"tag_info": {
|
|
"error": {
|
|
"fg": "#ff6b6b",
|
|
"font": "bold"
|
|
},
|
|
"result": {
|
|
"fg": "#abdbe3"
|
|
},
|
|
"symbolic": {
|
|
"fg": "#82aaff"
|
|
},
|
|
"numeric": {
|
|
"fg": "#c3e88d"
|
|
},
|
|
"equation": {
|
|
"fg": "#c792ea"
|
|
},
|
|
"info": {
|
|
"fg": "#ffcb6b"
|
|
},
|
|
"comment": {
|
|
"fg": "#546e7a"
|
|
},
|
|
"class_hint": {
|
|
"fg": "#888888"
|
|
},
|
|
"type_hint": {
|
|
"fg": "#6a6a6a"
|
|
},
|
|
"custom_type": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"hex": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"bin": {
|
|
"fg": "#4fc3f7"
|
|
},
|
|
"ip": {
|
|
"fg": "#fff176"
|
|
},
|
|
"date": {
|
|
"fg": "#ff8a80"
|
|
},
|
|
"chr_type": {
|
|
"fg": "#80cbc4"
|
|
},
|
|
"helper": {
|
|
"fg": "#ffd700",
|
|
"font": "italic"
|
|
}
|
|
}
|
|
},
|
|
"display_class": "[Integer]"
|
|
},
|
|
{
|
|
"index": 6,
|
|
"input": "engine.debug",
|
|
"output": "False",
|
|
"result_type": "bool",
|
|
"success": true,
|
|
"error": null,
|
|
"exec_result": false
|
|
},
|
|
{
|
|
"index": 7,
|
|
"input": "divide_by_zero = 10/0",
|
|
"output": "zoo",
|
|
"result_type": "ComplexInfinity",
|
|
"success": true,
|
|
"error": null,
|
|
"output_raw": {
|
|
"parts": [
|
|
[
|
|
"info",
|
|
"divide_by_zero = zoo"
|
|
]
|
|
],
|
|
"formatted_text": "[info]divide_by_zero = zoo",
|
|
"tag_info": {
|
|
"error": {
|
|
"fg": "#ff6b6b",
|
|
"font": "bold"
|
|
},
|
|
"result": {
|
|
"fg": "#abdbe3"
|
|
},
|
|
"symbolic": {
|
|
"fg": "#82aaff"
|
|
},
|
|
"numeric": {
|
|
"fg": "#c3e88d"
|
|
},
|
|
"equation": {
|
|
"fg": "#c792ea"
|
|
},
|
|
"info": {
|
|
"fg": "#ffcb6b"
|
|
},
|
|
"comment": {
|
|
"fg": "#546e7a"
|
|
},
|
|
"class_hint": {
|
|
"fg": "#888888"
|
|
},
|
|
"type_hint": {
|
|
"fg": "#6a6a6a"
|
|
},
|
|
"custom_type": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"hex": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"bin": {
|
|
"fg": "#4fc3f7"
|
|
},
|
|
"ip": {
|
|
"fg": "#fff176"
|
|
},
|
|
"date": {
|
|
"fg": "#ff8a80"
|
|
},
|
|
"chr_type": {
|
|
"fg": "#80cbc4"
|
|
},
|
|
"helper": {
|
|
"fg": "#ffd700",
|
|
"font": "italic"
|
|
}
|
|
}
|
|
},
|
|
"display_class": "[ComplexInfinity]"
|
|
},
|
|
{
|
|
"index": 8,
|
|
"input": "engine.symbolic_mode",
|
|
"output": "True",
|
|
"result_type": "bool",
|
|
"success": true,
|
|
"error": null,
|
|
"exec_result": true
|
|
},
|
|
{
|
|
"index": 9,
|
|
"input": "undefined_var + 5",
|
|
"output": "undefined_var + 5",
|
|
"result_type": "Add",
|
|
"success": true,
|
|
"error": null,
|
|
"output_raw": {
|
|
"parts": [
|
|
[
|
|
"symbolic",
|
|
"undefined_var + 5"
|
|
],
|
|
[
|
|
"class_hint",
|
|
"[Sympy]"
|
|
],
|
|
[
|
|
"numeric",
|
|
"≈ undefined_var + 5.0"
|
|
]
|
|
],
|
|
"formatted_text": "[symbolic]undefined_var + 5[class_hint][Sympy] [numeric]≈ undefined_var + 5.0",
|
|
"tag_info": {
|
|
"error": {
|
|
"fg": "#ff6b6b",
|
|
"font": "bold"
|
|
},
|
|
"result": {
|
|
"fg": "#abdbe3"
|
|
},
|
|
"symbolic": {
|
|
"fg": "#82aaff"
|
|
},
|
|
"numeric": {
|
|
"fg": "#c3e88d"
|
|
},
|
|
"equation": {
|
|
"fg": "#c792ea"
|
|
},
|
|
"info": {
|
|
"fg": "#ffcb6b"
|
|
},
|
|
"comment": {
|
|
"fg": "#546e7a"
|
|
},
|
|
"class_hint": {
|
|
"fg": "#888888"
|
|
},
|
|
"type_hint": {
|
|
"fg": "#6a6a6a"
|
|
},
|
|
"custom_type": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"hex": {
|
|
"fg": "#f9a825"
|
|
},
|
|
"bin": {
|
|
"fg": "#4fc3f7"
|
|
},
|
|
"ip": {
|
|
"fg": "#fff176"
|
|
},
|
|
"date": {
|
|
"fg": "#ff8a80"
|
|
},
|
|
"chr_type": {
|
|
"fg": "#80cbc4"
|
|
},
|
|
"helper": {
|
|
"fg": "#ffd700",
|
|
"font": "italic"
|
|
}
|
|
}
|
|
},
|
|
"display_class": "[Add]"
|
|
},
|
|
{
|
|
"index": 10,
|
|
"input": "list(engine.symbol_table.keys())",
|
|
"output": "['bad_mask', 'divide_by_zero']",
|
|
"result_type": "list",
|
|
"success": true,
|
|
"error": null,
|
|
"exec_result": [
|
|
"bad_mask",
|
|
"divide_by_zero"
|
|
]
|
|
}
|
|
]
|
|
} |