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: Windows 10
Compiler: MSVC
(But it would be nice to have on linux+gcc too)
Is there any way to create custom rule for displaying template types?
Let's say, I have created own struct that is hardly viewable in default debugger rule. But this struct has method called .as_std_vector() which creates std::vector that is easily readable. So I want a vscode debugger to always use this method when I want to view content of my struct. As a workaround I tried to display result of this method in degbug console, but this method was always optimized(template function, that is never called in code), so I still cannot view content in readable form
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
OS: Windows 10
Compiler: MSVC
(But it would be nice to have on linux+gcc too)
Is there any way to create custom rule for displaying template types?
Let's say, I have created own struct that is hardly viewable in default debugger rule. But this struct has method called
.as_std_vector()
which createsstd::vector
that is easily readable. So I want a vscode debugger to always use this method when I want to view content of my struct. As a workaround I tried to display result of this method in degbug console, but this method was always optimized(template function, that is never called in code), so I still cannot view content in readable formBeta Was this translation helpful? Give feedback.
All reactions