News for hackers. Stuff that matters.
Re:C++ Just My Code Stepping in Visual Studio by neverfone on Sunday July 01, 2018 @01:49PM (#17436599)
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 by phendrenad2 on Sunday July 01, 2018 @02:15PM (#17436754)
It’s a UX issue, not a behavior issue, I think. What I would do is... after the user presses the “step” button, until the user presses the “continue normally” (or whatever the free run button that ends the debugger is in VS), if breakpoints are encountered in other threads, they are quietly opened in new tabs, places under the current debugger tab. Maybe flash the tab a bit to let the user know this has happened. I don’t think VS has tabs for the debugger interface, so it would need that added.
Re:C++ Just My Code Stepping in Visual Studio by neverfone on Sunday July 01, 2018 @02:48PM (#17436915)
Hmmph, I see what you're saying, that sounds like it could work.

I think the tab flashing is the critical detail, otherwise you would be confused why things are deadlocking.

Re:C++ Just My Code Stepping in Visual Studio by jamesfmilne on Sunday July 01, 2018 @03:47PM (#17437202)
GDB can do that already.

   (gdb) help set scheduler-locking 
   Set mode for locking scheduler during execution.
   off  == no locking (threads may preempt at any time)
   on   == full locking (no thread except the current thread may run)
   step == scheduler locked during every single-step operation.
      In this mode, no other thread may run during a step command.
      Other threads may run while stepping over a function call ('next').
Re:C++ Just My Code Stepping in Visual Studio by Arnavion on Sunday July 01, 2018 @04:56PM (#17437525)
The VS debugger can freeze threads too. Neither gdb nor VS can help AFAIK if the user doesn't want to freeze the other threads.
Re:C++ Just My Code Stepping in Visual Studio by giancarlostoro on Sunday July 01, 2018 @04:48PM (#17437472)
GDB has all sorts of super powers but is there a GUI that works well with GDB?
Re:C++ Just My Code Stepping in Visual Studio by renox on Sunday July 01, 2018 @04:54PM (#17437514)
Yes, gdb --tui ;-)