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
47 stars 10 forks source link

Not working on macOS with clang #15

Closed billchen2k closed 3 years ago

billchen2k commented 3 years ago

🐛 Bug Report

When debugging, the error output window shows:

clang: error: no such file or directory: 'Support/Code/User/globalStorage/wangtao0101.debug-leetcode/commoncppproblem21.cpp'

Seems to be the problem with the space in the file path.

To Reproduce

Select any problem, click the debug.

Expected behavior

The problem should be debugging normally.

Extension Output

clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
clang: error: no such file or directory: 'Support/Code/User/globalStorage/wangtao0101.debug-leetcode/cppproblem21.exe'
clang: error: no such file or directory: 'Support/Code/User/globalStorage/wangtao0101.debug-leetcode'
clang: error: no such file or directory: '/Users/billchen/Library/Application'
clang: error: no such file or directory: 'Support/Code/User/globalStorage/wangtao0101.debug-leetcode/cppproblem21.cpp'
clang: error: no such file or directory: '/Users/billchen/Library/Application'
clang: error: no such file or directory: 'Support/Code/User/globalStorage/wangtao0101.debug-leetcode/commoncppproblem21.cpp'
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
clang: error: no such file or directory: 'Support/Code/User/globalStorage/wangtao0101.debug-leetcode/cppproblem21.exe'
clang: error: no such file or directory: 'Support/Code/User/globalStorage/wangtao0101.debug-leetcode'
clang: error: no such file or directory: '/Users/billchen/Library/Application'
clang: error: no such file or directory: 'Support/Code/User/globalStorage/wangtao0101.debug-leetcode/cppproblem21.cpp'
clang: error: no such file or directory: '/Users/billchen/Library/Application'
clang: error: no such file or directory: 'Support/Code/User/globalStorage/wangtao0101.debug-leetcode/commoncppproblem21.cpp'
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
clang: error: no such file or directory: 'Support/Code/User/globalStorage/wangtao0101.debug-leetcode/cppproblem21.exe'
clang: error: no such file or directory: 'Support/Code/User/globalStorage/wangtao0101.debug-leetcode'

Your Environment

wangtao0101 commented 3 years ago

@BillChen2K working with clang now in 0.2.3