Live data from Hacker News

C++ Just My Code Stepping in Visual Studio

blogs.msdn.microsoft.com

11–20 of 42 posts

Re: C++ Just My Code Stepping in Visual Studio

#11
post #10

It is funny how long this has been an issue and how I and so many people have given up stepping in and instead jump to the actual user function, set break point, and then step over at the source location, then unset the breakpoint and continue. A bunch of crazy steps which you end up doing again and again. Needless to say, this improvement is much welcomed!

Visual Studio even created the "Jump to here" option to do just this, but I agree this is how we all did it for a long time.

Re: C++ Just My Code Stepping in Visual Studio

#12
post #7

As a developer spending hours a day in Visual Studio with C++ as primary language this is a major improvement in terms of development time. Debugging is a a time consuming task in any language, but library headers from STD and Boost slow down the process tremendously.

Although it does help, I would say its only a bit faster than actually just setting a breakpoint of where you want the code to stop, and running till then, unlike Microsoft's example which shows 85 step intos, as if people actually do that.

We, for example, have lots of classes and structures that are designed to the interfaces provided by the STD containers. Mix that with actual STD containers and you can spend several hours trying to find the problem. Just My Code eliminates much of that since almost always the STD is not the cause for the problem.

Re: C++ Just My Code Stepping in Visual Studio

#14
Great. Now if they can actually fix the debugger to lock onto a single thread when stepping thru multithreaded code. Currently when you set a breakpoint and step, you’ll be jarringly switched back to the breakpoint when another thread hits it. The solutions now are tedious : https://visualstudio.uservoice.com/forums/121579-visual-stud...

Re: C++ Just My Code Stepping in Visual Studio

#15

Great. Now if they can actually fix the debugger to lock onto a single thread when stepping thru multithreaded code. Currently when you set a breakpoint and step, you’ll be jarringly switched back to the breakpoint when another thread hits it. The solutions now are tedious : https://visualstudio.uservoice.com/forums/121579-visual-stud...

Agreed. That's a real nuisance.

Re: C++ Just My Code Stepping in Visual Studio

#16
Now if only the Visual Studio C++ compiler was half as good and fast as GCC or Clang, or supported the new C++11/14/17 features properly. Frankly, it is 5-10 years behind these other compilers. Or maybe they could finally support variadic templates properly instead of doing it internally with ugly macro rewriting and limited argument numbers. That would be cool. Instead they add this feature which may have its uses but this is not something a skilled programmer who knows how to step through a program ever had a problem with.

Re: C++ Just My Code Stepping in Visual Studio

#17

Just a clarifying note : this is the closed Visual Studio, and not free software - VS Code - which usually does the rounds on HN. I'm far more excited about the LSP protocol for C++ which would bring like this to all IDEs.

I don't think the LSP includes any debugging support?
Post reply on HN