You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS and version of remote machine (if applicable): Local Machine
GDB / LLDB version: g++.exe (Rev1, Built by MSYS2 project) 14.2.0
Bug Summary and Steps to Reproduce
Bug Summary:
I was trying to use VSCode to debug a file with the official extension, however, the breakpoint was unable to hit.
And obviously, the breakpoint show an error, telling me that it has an unknown string "test.cpp". However, my filename is "2024 test.cpp", which is different from the string it shows.
After testing, I noticed that every file whose filename has a "number" + space at the begining(e.g. "2024 abc.cpp", "123456 qwerty.c", "0 k0.cpp") has this problem.
Additionally, other files are ok (e.g. "a0 test.cpp").
<- (E) {"seq":3,"type":"event","event":"output","body":{"category":"console","output":"------------------------------------------------------------------------------\nYou may only use the C/C++ Extension for Visual Studio Code with Visual Studio\nCode, Visual Studio or Visual Studio for Mac software to help you develop and\ntest your applications.\n------------------------------------------------------------------------------\n","severity":"ok"}}
------------------------------------------------------------------------------
You may only use the C/C++ Extension for Visual Studio Code with Visual Studio
Code, Visual Studio or Visual Studio for Mac software to help you develop and
test your applications.
------------------------------------------------------------------------------
<- (R) {"seq":5,"type":"response","request_seq":2,"success":true,"command":"launch"}
-> (C) {"type":"response","seq":1,"command":"handshake","request_seq":2,"success":true,"body":{"signature":"787+VNKnHjrRyQqi3yJZiPFaeQ9ht5r3KwRidy/I6oS92Q="}}
<- (E) {"seq":8,"type":"event","event":"initialized","body":{}}
-> (C) {"command":"setBreakpoints","arguments":{"source":{"name":"0 test.cpp","path":"d:\\Codespace\\Luogu\\Playboard\\0 test.cpp"},"lines":[5],"breakpoints":[{"line":5}],"sourceModified":false},"type":"request","seq":3}
<- (E) {"seq":11,"type":"event","event":"output","body":{"category":"telemetry","output":"vs/diagnostics/debugger/vsdbg/BreakpointAdded","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"17.12.10729.1 commit:f369b458d0e8e43fcaae9d514696aba8466573c7","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasHitCount":false,"VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.22631","VS.Diagnostics.Debugger.vsdbg.AdapterId":"cppvsdbg","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.BreakpointType":"Source","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasLogMessage":false,"VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasCondition":false}}}
<- (R) {"seq":13,"type":"response","request_seq":3,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":5}]}}
-> (C) {"command":"setBreakpoints","arguments":{"source":{"name":"020a26 test.cpp","path":"d:\\Codespace\\Luogu\\Playboard\\020a26 test.cpp"},"lines":[5],"breakpoints":[{"line":5}],"sourceModified":false},"type":"request","seq":4}
<- (E) {"seq":16,"type":"event","event":"output","body":{"category":"telemetry","output":"vs/diagnostics/debugger/vsdbg/BreakpointAdded","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"17.12.10729.1 commit:f369b458d0e8e43fcaae9d514696aba8466573c7","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasHitCount":false,"VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.22631","VS.Diagnostics.Debugger.vsdbg.AdapterId":"cppvsdbg","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.BreakpointType":"Source","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasLogMessage":false,"VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasCondition":false}}}
<- (R) {"seq":18,"type":"response","request_seq":4,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":2,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":5}]}}
-> (C) {"command":"setBreakpoints","arguments":{"source":{"name":"2024111200_Lab 7-3.cpp","path":"d:\\Codespace\\Luogu\\0Lessons\\Lab20241211\\2024111200_Lab 7-3.cpp"},"lines":[43],"breakpoints":[{"line":43}],"sourceModified":false},"type":"request","seq":5}
<- (E) {"seq":21,"type":"event","event":"output","body":{"category":"telemetry","output":"vs/diagnostics/debugger/vsdbg/BreakpointAdded","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"17.12.10729.1 commit:f369b458d0e8e43fcaae9d514696aba8466573c7","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasHitCount":false,"VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.22631","VS.Diagnostics.Debugger.vsdbg.AdapterId":"cppvsdbg","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.BreakpointType":"Source","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasLogMessage":false,"VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasCondition":false}}}
<- (R) {"seq":23,"type":"response","request_seq":5,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":3,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":43}]}}
-> (C) {"command":"setBreakpoints","arguments":{"source":{"name":"Main.cpp","path":"d:\\Codespace\\Luogu\\LuoguProblems\\P4447\\Main.cpp"},"lines":[31],"breakpoints":[{"line":31}],"sourceModified":false},"type":"request","seq":6}
<- (E) {"seq":26,"type":"event","event":"output","body":{"category":"telemetry","output":"vs/diagnostics/debugger/vsdbg/BreakpointAdded","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"17.12.10729.1 commit:f369b458d0e8e43fcaae9d514696aba8466573c7","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasHitCount":false,"VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.22631","VS.Diagnostics.Debugger.vsdbg.AdapterId":"cppvsdbg","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.BreakpointType":"Source","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasLogMessage":false,"VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasCondition":false}}}
<- (R) {"seq":28,"type":"response","request_seq":6,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":4,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":31}]}}
-> (C) {"command":"setBreakpoints","arguments":{"source":{"name":"ProblemC.cpp","path":"d:\\Codespace\\Luogu\\1Contest\\20241215ACM_Contest\\ProblemC.cpp"},"lines":[50],"breakpoints":[{"line":50}],"sourceModified":false},"type":"request","seq":7}
<- (E) {"seq":31,"type":"event","event":"output","body":{"category":"telemetry","output":"vs/diagnostics/debugger/vsdbg/BreakpointAdded","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"17.12.10729.1 commit:f369b458d0e8e43fcaae9d514696aba8466573c7","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasHitCount":false,"VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.22631","VS.Diagnostics.Debugger.vsdbg.AdapterId":"cppvsdbg","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.BreakpointType":"Source","VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasLogMessage":false,"VS.Diagnostics.Debugger.vsdbg.BreakpointAdded.HasCondition":false}}}
<- (R) {"seq":33,"type":"response","request_seq":7,"success":true,"command":"setBreakpoints","body":{"breakpoints":[{"id":5,"verified":false,"message":"The breakpoint is pending and will be resolved when debugging starts.","line":50}]}}
-> (C) {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":8}
<- (R) {"seq":36,"type":"response","request_seq":8,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}}
-> (C) {"command":"setInstructionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":9}
<- (R) {"seq":39,"type":"response","request_seq":9,"success":true,"command":"setInstructionBreakpoints","body":{"breakpoints":[]}}
-> (C) {"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[]},"type":"request","seq":10}
<- (R) {"seq":42,"type":"response","request_seq":10,"success":true,"command":"setExceptionBreakpoints","body":{}}
-> (C) {"command":"configurationDone","type":"request","seq":11}
-> (C) {"seq":45,"type":"request","command":"runInTerminal","arguments":{"kind":"external","title":"D:\\Codespace\\Luogu\\Playboard\\0 test.exe","cwd":"","args":["c:\\Users\\UnCLAS\\.vscode\\extensions\\ms-vscode.cpptools-1.22.11-win32-x64\\debugAdapters\\vsdbg\\bin\\VsDebugConsole.exe","\\\\.\\pipe\\Microsoft-VisualStudio-Debug-Console-{42D17708-0997-4F93-9BDB-00A6A804D224}","Local\\{42D17708-0997-4F93-9BDB-00A6A804D224}","/AutoExit"]}}
-> (C) {"type":"response","seq":12,"command":"runInTerminal","request_seq":45,"success":true,"body":{}}
<- (E) {"seq":48,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/ProcessCreate","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"17.12.10729.1 commit:f369b458d0e8e43fcaae9d514696aba8466573c7","VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.22631","VS.Diagnostics.Debugger.vsdbg.TargetArchitecture":"AMD64"}}}
<- (E) {"seq":50,"type":"event","event":"process","body":{"name":"D:\\Codespace\\Luogu\\Playboard\\0 test.exe","systemProcessId":47428,"startMethod":"launch","pointerSize":64}}
<- (E) {"seq":52,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":1,"verified":false,"message":"No symbols have been loaded for this document.","line":5}}}
<- (E) {"seq":54,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":2,"verified":false,"message":"No symbols have been loaded for this document.","line":5}}}
<- (E) {"seq":56,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":3,"verified":false,"message":"No symbols have been loaded for this document.","line":43}}}
<- (E) {"seq":58,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":4,"verified":false,"message":"No symbols have been loaded for this document.","line":31}}}
<- (E) {"seq":60,"type":"event","event":"breakpoint","body":{"reason":"changed","breakpoint":{"id":5,"verified":false,"message":"No symbols have been loaded for this document.","line":50}}}
<- (R) {"seq":62,"type":"response","request_seq":11,"success":true,"command":"configurationDone"}
<- (E) {"seq":64,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'D:\\Codespace\\Luogu\\Playboard\\0 test.exe'. \n"}}
Loaded 'D:\Codespace\Luogu\Playboard\0 test.exe'.
-> (C) {"command":"threads","type":"request","seq":13}
<- (R) {"seq":67,"type":"response","request_seq":13,"success":true,"command":"threads","body":{"threads":[]}}
<- (E) {"seq":69,"type":"event","event":"module","body":{"reason":"new","module":{"id":1000,"name":"0 test.exe","path":"D:\\Codespace\\Luogu\\Playboard\\0 test.exe","isUserCode":true,"symbolStatus":"Binary was not built with debug information."}}}
<- (E) {"seq":71,"type":"event","event":"thread","body":{"reason":"started","threadId":44296}}
<- (E) {"seq":73,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Windows\\System32\\ntdll.dll'. \n"}}
Loaded 'C:\Windows\System32\ntdll.dll'.
<- (E) {"seq":75,"type":"event","event":"module","body":{"reason":"new","module":{"id":1001,"name":"ntdll.dll","path":"C:\\Windows\\System32\\ntdll.dll","isUserCode":false,"version":"10.0.22621.4541 (WinBuild.160101.0800)","symbolStatus":"Cannot find or open the PDB file."}}}
<- (E) {"seq":77,"type":"event","event":"thread","body":{"reason":"started","threadId":47872}}
<- (E) {"seq":79,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Windows\\System32\\kernel32.dll'. \n"}}
Loaded 'C:\Windows\System32\kernel32.dll'.
<- (E) {"seq":81,"type":"event","event":"module","body":{"reason":"new","module":{"id":1002,"name":"kernel32.dll","path":"C:\\Windows\\System32\\kernel32.dll","isUserCode":false,"version":"10.0.22621.4391 (WinBuild.160101.0800)","symbolStatus":"Cannot find or open the PDB file."}}}
<- (E) {"seq":83,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Windows\\System32\\KernelBase.dll'. \n"}}
Loaded 'C:\Windows\System32\KernelBase.dll'.
<- (E) {"seq":85,"type":"event","event":"module","body":{"reason":"new","module":{"id":1003,"name":"KernelBase.dll","path":"C:\\Windows\\System32\\KernelBase.dll","isUserCode":false,"version":"10.0.22621.4541 (WinBuild.160101.0800)","symbolStatus":"Cannot find or open the PDB file."}}}
<- (E) {"seq":87,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Windows\\System32\\msvcrt.dll'. \n"}}
Loaded 'C:\Windows\System32\msvcrt.dll'.
<- (E) {"seq":89,"type":"event","event":"module","body":{"reason":"new","module":{"id":1004,"name":"msvcrt.dll","path":"C:\\Windows\\System32\\msvcrt.dll","isUserCode":false,"version":"7.0.22621.2506 (WinBuild.160101.0800)","symbolStatus":"Cannot find or open the PDB file."}}}
<- (E) {"seq":91,"type":"event","event":"thread","body":{"reason":"started","threadId":26188}}
<- (E) {"seq":93,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\msys64\\mingw64\\bin\\libstdc++-6.dll'. Module was built without symbols.\n"}}
Loaded 'C:\msys64\mingw64\bin\libstdc++-6.dll'. Module was built without symbols.
<- (E) {"seq":95,"type":"event","event":"module","body":{"reason":"new","module":{"id":1005,"name":"libstdc++-6.dll","path":"C:\\msys64\\mingw64\\bin\\libstdc++-6.dll","isUserCode":true,"symbolStatus":"Binary was not built with debug information."}}}
<- (E) {"seq":97,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\msys64\\mingw64\\bin\\libgcc_s_seh-1.dll'. Module was built without symbols.\n"}}
Loaded 'C:\msys64\mingw64\bin\libgcc_s_seh-1.dll'. Module was built without symbols.
<- (E) {"seq":99,"type":"event","event":"module","body":{"reason":"new","module":{"id":1006,"name":"libgcc_s_seh-1.dll","path":"C:\\msys64\\mingw64\\bin\\libgcc_s_seh-1.dll","isUserCode":true,"symbolStatus":"Binary was not built with debug information."}}}
<- (E) {"seq":101,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\msys64\\mingw64\\bin\\libwinpthread-1.dll'. Module was built without symbols.\n"}}
Loaded 'C:\msys64\mingw64\bin\libwinpthread-1.dll'. Module was built without symbols.
<- (E) {"seq":103,"type":"event","event":"module","body":{"reason":"new","module":{"id":1007,"name":"libwinpthread-1.dll","path":"C:\\msys64\\mingw64\\bin\\libwinpthread-1.dll","isUserCode":true,"version":"1, 0, 0, 0","symbolStatus":"Binary was not built with debug information."}}}
<- (E) {"seq":105,"type":"event","event":"thread","body":{"reason":"started","threadId":47468}}
<- (E) {"seq":107,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Windows\\System32\\cryptbase.dll'. \n"}}
Loaded 'C:\Windows\System32\cryptbase.dll'.
<- (E) {"seq":109,"type":"event","event":"module","body":{"reason":"new","module":{"id":1008,"name":"cryptbase.dll","path":"C:\\Windows\\System32\\cryptbase.dll","isUserCode":false,"version":"10.0.22621.1 (WinBuild.160101.0800)","symbolStatus":"Cannot find or open the PDB file."}}}
<- (E) {"seq":111,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Windows\\System32\\bcryptprimitives.dll'. \n"}}
Loaded 'C:\Windows\System32\bcryptprimitives.dll'.
<- (E) {"seq":113,"type":"event","event":"module","body":{"reason":"new","module":{"id":1009,"name":"bcryptprimitives.dll","path":"C:\\Windows\\System32\\bcryptprimitives.dll","isUserCode":false,"version":"10.0.22621.4317 (WinBuild.160101.0800)","symbolStatus":"Cannot find or open the PDB file."}}}
<- (E) {"seq":115,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/Launch","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"17.12.10729.1 commit:f369b458d0e8e43fcaae9d514696aba8466573c7","VS.Diagnostics.Debugger.vsdbg.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.22631","VS.Diagnostics.Debugger.vsdbg.TargetType":"Live","VS.Diagnostics.Debugger.vsdbg.AdapterId":"cppvsdbg","VS.Diagnostics.Debugger.vsdbg.SourceFileMappings":0,"VS.Diagnostics.Debugger.vsdbg.Launch.DebuggerStartTime":719}}}
<- (E) {"seq":117,"type":"event","event":"thread","body":{"reason":"exited","threadId":47872}}
-> (C) {"command":"threads","type":"request","seq":14}
<- (R) {"seq":120,"type":"response","request_seq":14,"success":true,"command":"threads","body":{"threads":[{"id":44296,"name":"Thread #44296"},{"id":26188,"name":"Thread #26188"},{"id":47468,"name":"Thread #47468"}]}}
<- (E) {"seq":122,"type":"event","event":"thread","body":{"reason":"exited","threadId":47468}}
<- (E) {"seq":124,"type":"event","event":"thread","body":{"reason":"exited","threadId":26188}}
<- (E) {"seq":126,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/ProcessExit","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"17.12.10729.1 commit:f369b458d0e8e43fcaae9d514696aba8466573c7","VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.22631","VS.Diagnostics.Debugger.vsdbg.AdapterId":"cppvsdbg"}}}
<- (E) {"seq":128,"type":"event","event":"output","body":{"category":"console","output":"The program '[47428] 0 test.exe' has exited with code 0 (0x0).\n"}}
The program '[47428] 0 test.exe' has exited with code 0 (0x0).
<- (E) {"seq":130,"type":"event","event":"exited","body":{"exitCode":0}}
<- (E) {"seq":132,"type":"event","event":"terminated","body":{}}
-> (C) {"command":"disconnect","arguments":{"restart":false,"terminateDebuggee":false},"type":"request","seq":15}
<- (E) {"seq":135,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/DebugCompleted","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"17.12.10729.1 commit:f369b458d0e8e43fcaae9d514696aba8466573c7","VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.22631","VS.Diagnostics.Debugger.vsdbg.DebugCompleted.BreakCounter":0,"VS.Diagnostics.Debugger.vsdbg.AdapterId":"cppvsdbg"}}}
<- (R) {"seq":137,"type":"response","request_seq":15,"success":true,"command":"disconnect"}
Other Extensions
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
I was trying to use VSCode to debug a file with the official extension, however, the breakpoint was unable to hit.
And obviously, the breakpoint show an error, telling me that it has an unknown string "test.cpp". However, my filename is "2024 test.cpp", which is different from the string it shows.
After testing, I noticed that every file whose filename has a "number" + space at the begining(e.g. "2024 abc.cpp", "123456 qwerty.c", "0 k0.cpp") has this problem.
Additionally, other files are ok (e.g. "a0 test.cpp").
Steps to reproduce:
Debugger Configurations
Debugger Logs
Other Extensions
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: