microsoft / microsoft/vscode-cpptools
How to view nested STL container in debugger - C++
@WardenGnaw arbeitet bereits daran.
Seit 16.4.2018.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 6.2k
- Forks
- 1.7k
- Ø Merge
- 14 Std. 46 Min.
- Gemergte PRs (30 T.)
- 61
Beschreibung
vscode cannot display nested STL container in the debugger.
For example,say we have
typedef set A
typedef list G
map<int, G > D;
IN the debugger, the only data I can inspect is A. G and D both would show stuff like:
std::__cxx11::_List_base<std::set<int, std::less, std::allocator >, std::allocator<std::set<int, std::less, std::allocator > > >
I have
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
enabled.
If this intended, then how do we debug a complex data structure?
Advice is appreciated.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.