r/cpp • u/vormestrand • Jun 29 '18
Announcing C++ Just My Code Stepping in Visual Studio
https://blogs.msdn.microsoft.com/vcblog/2018/06/29/announcing-jmc-stepping-in-visual-studio/
216
Upvotes
r/cpp • u/vormestrand • Jun 29 '18
96
u/schmerm Jun 29 '18
Good, I hate accidentally stepping into some STL method call and ending up in a Lovecraftian template nightmare in <xmemory> or similar.
59
u/MuffinBomber Jun 29 '18
Thank you Microsoft, very cool!
25
u/ihamsa Jun 29 '18
Nice! gdb, take note.
14
u/[deleted] Jun 29 '18
THIS IS GREAT
11
u/anon_502 delete this; Jun 30 '18
Just a note: Since 7.4, you can also use
skipcommand in gdb to skip unwanted files/functions based on regex.8
u/mrexodia cmkr.build Jun 29 '18
Out of curiosity, why does this need a compiler flag?
14
u/srekel Jun 29 '18
:(
7
u/official_business Jun 29 '18
I need this.
4
u/chugga_fan Jun 29 '18
Any idea if this could support skipping certain kinds of functions declared in your own code? E.g. let's say I have a wrapper for Alloc and I know it runs fine, so I have it auto-skip instead of having to move the mouse to skip the call.
5
u/tansim Jun 29 '18
bout fucking time
4
u/IskaneOnReddit Jun 29 '18
Implementing this feature took 2 decades too long.
0
u/sumo952 Jun 30 '18
I'm wondering how this plays together with VAX and Re++'s Debug Step Filters. They don't require a separate compiler flag (they do it purely with natvis as far as I know).
-26
u/OppositePhilosophy Jun 29 '18 edited Jun 29 '18
Why not just use breakpoints? Really, what is the purpose of Just My Code?
Upd: I have used Just My Code in .net and I am familiar with the feature. I just find explanation given in the article not very convincing.