解决Vscode使用LeetCode报错Failed to test the solution. Please open the output channel for details.

1 问题

Vscode中使用LeetCode插件进行代码调试,点击Test、Debug、Debug input会报错

Failed to test the solution. Please open the output channel for details.

2 解决方案

第一步:在插件商店,找到安装的LeetCode,点击设置,选择Extension Setting,找到Edit setting.json

在这里插入图片描述

第二步:在Setting.json中,添加一行代码
“leetcode.outputFolder”: “${difficulty}”,保存后,重启Vscode,成功解决
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_43935696/article/details/124673282