Live data from Hacker News

C++ Just My Code Stepping in Visual Studio

blogs.msdn.microsoft.com

21–30 of 42 posts

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

#21
post #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?

I meant the sister/offshoot of LSP:

https://github.com/Microsoft/vscode-debugadapter-node/tree/m...

https://code.visualstudio.com/docs/extensionAPI/api-debuggin...

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

#22

Why has it taken this long for something so obvious to be implemented?

With VS2017, they've moved to a faster release cadence. Fortunely, the minor releases are actually delivering significant features, like C++17 conformance.

The downside is occasional toolset compatibility issues. https://blogs.msdn.microsoft.com/vcblog/2017/11/15/side-by-s...

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

#24
post #5
post #3

I love this idea. I wonder if something similar could be ported/achieved for JavaScript!

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. [1]: https://developer.chrome.com/devtools/docs/blackboxing

Thanks for this! I didn't realise this feature existed.

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

#26
post #3

I love this idea. I wonder if something similar could be ported/achieved for JavaScript!

The Microsoft Edge browser has had this feature for two or three years, by the same name. Chrome has something similar.

https://docs.microsoft.com/en-us/microsoft-edge/devtools-gui...

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

#27

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...

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.

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

#28
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!

[deleted]

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

#29

I would love to know the best Linux/OS X GUI debugger... and can it do this?

I don't know if there are any good Linux GUI debuggers, but gdb is a comprehensive debugger and can do something similar with the skip command.

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.

Post reply on HN