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
I tried to debug a C++ program and had set a breakpoint. After it paused at the breakpoint, I type "s"(which is a "char s[100]" type) in the debug console and saw this:
Stopping due to fatal error: ArgumentException: An item with the same key has already been added. Key: (Microsoft.MIDebugEngine.AD7StackFrame, s)
example program:
#include <cstdio>
int main(){
char s[100]="12345";
printf("%s\n",s);
return 0; // breakpoint was at this line
}
Complie and debug it, type "s" and press Enter in the debug console.
Expected behaviour:
Output the value of s(v [100])
In fact, the output is:
v[100]
Stopping due to fatal error: ArgumentException: An item with the same key has already been added. Key: (Microsoft.MIDebugEngine.AD7StackFrame, s)
and it really stopped.
Extension version: 3.1.1
VS Code version: Code 1.64.0 (5554b12acf27056905806867f251c859323ff7e9, 2022-02-03T04:22:20.678Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
System Info
Item
Value
CPUs
Intel(R) Core(TM) i5-3337U CPU @ 1.80GHz (4 x 1796)
Hi, this extension just uses Mircosoft's official C/C++ extension for debugging.
So if there is any bug you should raise an issue there.
However, maybe I can help you.
Are you using GCC, Clang, or MSVC Compiler?
Can you send a screenshot of your described use case?
Thanks for your reply.After I post this issue, I searched on GitHub and found the same issue I meet, which is at <microsoft/vscode-cpptools#8760> .The bug was fixed and the issue was closed today.Message ID: ***@***.***>
Issue Type: Bug
I tried to debug a C++ program and had set a breakpoint. After it paused at the breakpoint, I type "s"(which is a "char s[100]" type) in the debug console and saw this:
Stopping due to fatal error: ArgumentException: An item with the same key has already been added. Key: (Microsoft.MIDebugEngine.AD7StackFrame, s)
example program:
Complie and debug it, type "s" and press Enter in the debug console.
Expected behaviour:
Output the value of s(v [100])
In fact, the output is:
and it really stopped.
Extension version: 3.1.1
VS Code version: Code 1.64.0 (5554b12acf27056905806867f251c859323ff7e9, 2022-02-03T04:22:20.678Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: