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...
The problem is that the normal implementation of a breakpoint/step is replace a single byte with a 0xCC opcode (INT 3), which will be hit by every thread. Making it lock onto a single thread would require a conditional breakpoint, checking the thread ID every time that code path is executed, which might potentially use a lot of CPU. I'm not sure that kind of conditional breakpoint has hardware support.
It's definitely possible to implement, but not as easy as using a regular INT 3 instruction.
Not a windows user, but the same applies to gdb. What is your proposal? If you're currently debugging a thread, breakpoints are disabled for other threads? That really doesn't seem like what people would expect by default.
It would be pretty funny if they extended it to "just my uncommitted changes." ie: I want to step through every line I have written, but skip everything else...
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!
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.
Not exactly the same, but you can use blackboxing [1] in the Chrome DevTools to isolate code you’ve written from library/framework code in the debugger.
With VS2017, they've moved to a faster release cadence. Fortunely, the minor releases are actually delivering significant features, like C++17 conformance.
[+] [-] waynecochran|7 years ago|reply
[+] [-] 1_player|7 years ago|reply
It's definitely possible to implement, but not as easy as using a regular INT 3 instruction.
[+] [-] neverfone|7 years ago|reply
[+] [-] maxxxxx|7 years ago|reply
[+] [-] melling|7 years ago|reply
https://news.ycombinator.com/item?id=17427001
“”” with gdb 7.12 or later, you can exclude files matching a glob with "skip -gfile", e.g. "skip -gfile /usr/*" “””
[+] [-] _slyo|7 years ago|reply
[+] [-] a-dub|7 years ago|reply
[+] [-] scraft|7 years ago|reply
Needless to say, this improvement is much welcomed!
[+] [-] Dinux|7 years ago|reply
[+] [-] unknown|7 years ago|reply
[deleted]
[+] [-] Dinux|7 years ago|reply
[+] [-] johnboyer|7 years ago|reply
[+] [-] spoiler|7 years ago|reply
[+] [-] maddyboo|7 years ago|reply
[1]: https://developer.chrome.com/devtools/docs/blackboxing
[+] [-] dmethvin|7 years ago|reply
https://docs.microsoft.com/en-us/microsoft-edge/devtools-gui...
[+] [-] brian_herman|7 years ago|reply
[+] [-] chris_wot|7 years ago|reply
[+] [-] neverfone|7 years ago|reply
Any gui debugger for Linux is probably a frontend to gdb, so as long as it lets you passthrough commands to gdb it can do this.
[+] [-] pjmlp|7 years ago|reply
[+] [-] TylerGlaiel|7 years ago|reply
[+] [-] unknown|7 years ago|reply
[deleted]
[+] [-] w_t_payne|7 years ago|reply
[+] [-] Tempest1981|7 years ago|reply
The downside is occasional toolset compatibility issues. https://blogs.msdn.microsoft.com/vcblog/2017/11/15/side-by-s...
[+] [-] merinowool|7 years ago|reply
[+] [-] Kenji|7 years ago|reply
[deleted]
[+] [-] anilgulecha|7 years ago|reply
I'm far more excited about the LSP protocol for C++ which would bring like this to all IDEs.
[+] [-] Rusky|7 years ago|reply