microsoft / microsoft/vscode-cpptools
[Breakpoints] Stopping due to fatal error: ArgumentNullException: Value cannot be null. (Parameter 'key')
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Environment
- OS and version: Ubuntu 22.04.5 LTS
- VS Code: 1.96.4
- C/C++ extension: 1.23.5
- OS and version of remote machine (if applicable): N/A
- GDB / LLDB version: tried with GDB 12.1 and GDB 16.2
Bug Summary and Steps to Reproduce
Bug Summary:
-
If I set a breakpoint, and run my Binary and then stop at the breakpoint, I get the Message:
Stopping due to fatal error: ArgumentNullException: Value cannot be null. (Parameter 'key') -
and Then I can no longer Step Over or see variables
-
NOTE: This was working before, I might have installed a conflicting library or something?
Steps to reproduce:
- In this environment...
- With this config...
- Do '...'
- See error...
Debugger Configurations
Launch.json
{
"name": "Run test (Linux x64)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/out/${input:outTestLinux}",
"args": [],
"cwd": "${workspaceFolder}"
},
Debugger Logs
=thread-group-added,id="i1"
GNU gdb (GDB) 16.2
Copyright (C) 2024 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
Stopped due to shared library event (no libraries added or removed)
Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Breakpoint 1, main () at ../../third_party/pigweed/repo/pw_unit_test/simple_printing_main.cc:22
22 int main() {
Loaded '/lib/x86_64-linux-gnu/libatomic.so.1'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libssl.so.3'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libcrypto.so.3'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libgio-2.0.so.0'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libgobject-2.0.so.0'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libglib-2.0.so.0'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libm.so.6'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libresolv.so.2'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libc.so.6'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libpthread.so.0'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libgmodule-2.0.so.0'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libz.so.1'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libmount.so.1'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libselinux.so.1'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libffi.so.8'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libpcre.so.3'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libblkid.so.1'. Symbols loaded.
Loaded '/lib/x86_64-linux-gnu/libpcre2-8.so.0'. Symbols loaded.
Breakpoint 3, (anonymous namespace)::GetAddressWithMediumScore (port=5540, interfaceId=...) at ../../src/lib/address_resolve/tests/TestAddressResolve_DefaultImpl.cpp:84
84 Inet::IPAddress ipAddress;
Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)
Stopping due to fatal error: ArgumentNullException: Value cannot be null. (Parameter 'key')
Other Extensions
No response
Additional Information
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the provided launch.json configuration and GDB 12.1 or 16.2, stopping at the breakpoint shown in the logs. Trace the breakpoint-stop path that produces the ArgumentNullException, then verify that stepping and variable inspection work normally after the fix.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100