wangtao0101 / vscode-debug-leetcode

vscode debug extension for leetcode, can work with vscode-leetcode
https://marketplace.visualstudio.com/items?itemName=wangtao0101.debug-leetcode
MIT License
48 stars 10 forks source link

debug input format error #30

Open Xiaoshu-Zhao opened 1 year ago

Xiaoshu-Zhao commented 1 year ago

🐛 Bug Report

When I want to create my own test case or debug input I got the follwoing problem. I am a little confused about the format of the input. For example, if the function is def networkDelayTime(self, times: List[List[int]], n: int, k: int) -> int:, can I used the input as [[1,2,1]]\2\2 ? Exception has occurred: JSONDecodeError Extra data: line 1 column 10 (char 9) File "C:\Users\zhaox\AppData\Roaming\Code\User\globalStorage\wangtao0101.debug-leetcode\python3problem743.py", line 308, in start params.append(json.loads(codecs.getdecoder("unicode_escape")(val)[0])) File "C:\Users\zhaox\AppData\Roaming\Code\User\globalStorage\wangtao0101.debug-leetcode\python3problem743.py", line 346, in <module> raise identifier File "C:\Users\zhaox\AppData\Roaming\Code\User\globalStorage\wangtao0101.debug-leetcode\python3problem743.py", line 346, in <module> raise identifier json.decoder.JSONDecodeError: Extra data: line 1 column 10 (char 9) or image

To Reproduce

Steps to reproduce the behavior.

Expected behavior

A clear and concise description of what you expected to happen.

Extension Output

Paste here the LeetCode extension log from output channel.

Guidance: Press Ctrl+Shift+U, and toggle the channel to Debug LeetCode.

Your Environment