vscode-debug-leetcode icon indicating copy to clipboard operation
vscode-debug-leetcode copied to clipboard

debug input format error

Open Xiaoshu-Zhao opened this issue 1 year ago • 0 comments

🐛 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

  • os:
  • extension settings:
  • nodejs version:
  • vscode version:
  • extension version:

Xiaoshu-Zhao avatar Aug 13 '23 11:08 Xiaoshu-Zhao