Skip to content

Commit f5f44d7

Browse files
committed
Added supported_features in kernel_info_reply
1 parent 1422755 commit f5f44d7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/xinterpreter.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,12 @@ namespace xpyt
310310
"\n");
311311
#endif
312312
result["banner"] = banner;
313-
result["debugger"] = (PY_MAJOR_VERSION != 3) || (PY_MAJOR_VERSION != 13);
313+
bool debugger = (PY_MAJOR_VERSION != 3) || (PY_MAJOR_VERSION != 13);
314+
result["debugger"] = debugger;
315+
if (debugger)
316+
{
317+
result["supported_features"] = nl::json::array({"debugger"});
318+
}
314319

315320
result["language_info"]["name"] = "python";
316321
result["language_info"]["version"] = PY_VERSION;

0 commit comments

Comments
 (0)