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

Class name is different to source class, and cause can't build

Open e14002270 opened this issue 4 years ago • 0 comments

🐛 Bug Report

When I test the leetcode 297, the file cppproblem297.cpp call (new Solution())->serialize(arg0); but the original problem use "Codec" as class name, so it can't build pass.

/home/eric/.vscode-server/data/User/globalStorage/wangtao0101.debug-leetcode/cppproblem297.cpp:26:10: error: expected type-specifier before ‘Solution’ (new Solution())->serialize(arg0); ^~~~~~~~ path /home/eric/.vscode-server/data/User/globalStorage/wangtao0101.debug-leetcode/cppproblem297.cpp

And I wanna modify the code, because the code just test serialize but don't test deserialize, But every time I run the debug, it rewrite my change to default code, how can I modify the test code?

To Reproduce

choose leetcode 297 and debug, and can't build pass, so it can't enter gdb.

Expected behavior

build pass and can debug

Extension Output

/home/eric/.vscode-server/data/User/globalStorage/wangtao0101.debug-leetcode/cppproblem297.cpp:26:10: error: expected ‘)’ before ‘Solution’ /home/eric/.vscode-server/data/User/globalStorage/wangtao0101.debug-leetcode/cppproblem297.cpp: In function ‘int main(int, char**)’: /home/eric/.vscode-server/data/User/globalStorage/wangtao0101.debug-leetcode/cppproblem297.cpp:26:10: error: expected type-specifier before ‘Solution’ (new Solution())->serialize(arg0); ^~~~~~~~ /home/eric/.vscode-server/data/User/globalStorage/wangtao0101.debug-leetcode/cppproblem297.cpp:26:10: error: expected ‘)’ before ‘Solution

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

Your Environment

  • os:Window and Window Linux Subsystem
  • extension settings:
  • nodejs version:
  • vscode version:
  • extension version:

e14002270 avatar Dec 11 '20 13:12 e14002270