Debugging Tips and Tricks Part 1

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • In this episode (part 1 of 2), Robert is joined by Leslie Richardson, who shows several ways you can get the most out of Visual Studio's debugging tools. She shows a number of features, most of which have been in the product all along. Whether you are a new or experienced developer, you will see some things you can use to help solve issues in your code.
    Check out aka.ms/debuggerdisplay to learn more about customizing object displays in the debugger
  • НаукаНаука

Комментарии • 39

  • @lixin5169
    @lixin5169 5 лет назад +12

    1 "Run To" button just at the head of the lines
    2 Pin the "Watch" window (it can't be in another monitor, BTW)
    3 DebuggerDisplay to show customized information in the Watch/Auto/Local window
    4 Text Visualizer(XML, HTML, JSON)
    5 Actions in Breakpoint setting, log a message to the Output window, also in the "Diagnostic Tools -> Events" window

  • @MasonWiseman
    @MasonWiseman 5 лет назад +15

    Been using VS forever and didn't know about quite a few of these. Very informative and helpful!

  • @salihkarabilo7005
    @salihkarabilo7005 5 лет назад

    Thanks for the content, Love the RunToClick and DebuggerDisplay. Keep the great conent up!

  • @KillerMZE
    @KillerMZE 5 лет назад

    This was really good. Only knew 3 of these tips, and the tracing breakpoints are going to be so helpful. One note about conditional breakpoints, they slow down execution a lot, even compared to debug speed, so use them sparingly.

  • @onewhispergaming6435
    @onewhispergaming6435 5 лет назад

    Thanks for the debugging tips. I do C# in Visual Studio. I love the interface of Visual Studio 2019.

  • @iancarr3923
    @iancarr3923 5 лет назад

    Great video. Love the debuggerdisplay feature. As an olidie I remember conditional break points in VS2005. Nothing to do with programming but good to see "Pere Goriot" in the book list.

  • @mohdotnet
    @mohdotnet 5 лет назад

    Very informative many thanks for sharing. Did not know this existed.

  • @Matll
    @Matll 5 лет назад

    Thanks, these were actually really handy tips!

  • @lestersantiago510
    @lestersantiago510 5 лет назад

    Awesome share. and awesome to see firefox being used on the demo :) Immediate windows is nice!

  • @DalTron001
    @DalTron001 5 лет назад +2

    This is awesome! I need like a simplified cheat sheet with tips like this on it.

  • @julianocs87
    @julianocs87 5 лет назад

    Very helpful. Keep up with the good content.

  • @bigshadow86
    @bigshadow86 5 лет назад

    I have been using Visual Studio since day one. I didn't know about the debuggerdisplay attribute on the class object. To display the objects of a list or arrray in a data tip, I have always override the ToString() function and write all the logic in there. I have never seen the run to click feature, seems handy.

  • @Kefitzat_haDerech
    @Kefitzat_haDerech 5 лет назад +1

    Great!! Also please do one on profiling tools.

  • @Corrado49
    @Corrado49 5 лет назад

    very helpful and well explained

  • @embeddedsemrade
    @embeddedsemrade 3 года назад

    I really like this video thank you!

  • @jessesinger923
    @jessesinger923 5 лет назад

    This is great.

  • @b_gumm
    @b_gumm Год назад

    Thank you

  • @rehmanshahid5671
    @rehmanshahid5671 5 лет назад

    One of my favourite is watch window...

  • @khoachung89
    @khoachung89 5 лет назад +3

    Very helpful video :)
    Just one thing: many videos on Channel 9 and other Microsoft's channels are described with timeline.
    something like:
    2:45 : Run Execution to line
    3:30 : Pin Watching item.....
    It's a lot easier for me to review video like that, instead of viewing full video with many things i have already known.

    • @_fbr
      @_fbr 5 лет назад

      I couldn't agree more. Also, it would be great if you can add bookmarks in the video so people can jump to the main points just like in other sites like Ud*my. JustMy2Cents.

  • @johannesschweer6301
    @johannesschweer6301 5 лет назад

    This is an awesome video! Is it possible to get these type of Tips and Tricks for Visual Studio Code?

  • @LuigiZambetti
    @LuigiZambetti 2 года назад

    Please, add more videos about Visual Studio debugging.

  • @hamadanjum4720
    @hamadanjum4720 5 лет назад

    Thats cool.

  • @孫守真
    @孫守真 5 лет назад

    11:30 breakpoint Actions 14:00 Output Windows
    Why did my Visual Studio 2019 Community print it in the Immediate Window, not in Output? Thanks.
    感恩感恩 南無阿彌陀佛

  • @madisonmadison3825
    @madisonmadison3825 5 лет назад

    With regard to Tip 3 "DebuggerDisplay attribute": we could override ToString() to get same result in previous VS

    • @lugoheriberto
      @lugoheriberto 2 года назад

      In any vs you can do that. But tostring is generally for use in code.

  • @eclectictraveler9073
    @eclectictraveler9073 4 года назад

    Is there a git repo to tinker with it?

  • @GaddiShare
    @GaddiShare 5 лет назад

    Please increase font size of code in next parts of this series.

  • @RonaldZaZ
    @RonaldZaZ 5 лет назад

    You don't need to restart the application if you add/change a conditional breakpoint. Maybe your app needs to be restarted to reach the code you are debugging, but then that's simply because how your app is written.

    • @lugoheriberto
      @lugoheriberto 2 года назад

      She didn't restart because of the breakpoint. She restarted because of state the app was in. In this example she could've just dragged the current step to the beginning. Which she know because she shows it in another video.

  • @Chiramisudo
    @Chiramisudo 3 года назад +1

    Go upvote "Support data breakpoints for .NET framework" here!:
    developercommunity.visualstudio.com/idea/518713/support-data-breakpoints-for-net-framework.html

  • @tenminutetokyo2643
    @tenminutetokyo2643 4 года назад

    “What does it say about the quality of your engineering if you have to have all this testing” - Steve Jobs

    • @aaronandannelogan
      @aaronandannelogan 4 года назад +2

      With all due respect to Jobs, that seems like a very cavalier attitude to have with respect to software testing.

  • @anamamer2600
    @anamamer2600 7 месяцев назад

    I feel like a neanderthal after watching this. God i could have saved 100s of hours if i knew this

  • @medusaskull9625
    @medusaskull9625 Год назад

    My code is perfect. My bug is also perfect. It's not easy to debug.

  • @MobilTemp
    @MobilTemp 4 года назад +1

    Sound angry..

  • @bradleyr4451
    @bradleyr4451 Год назад

    Why the black screen? with faint dark green or faint dark blue text? with no contrast? To read the screen have to use magnifier at 200x. Are we fancy and important if we use the black screen? Oh Im so sophisticated because I saw that one guy use the dark background so I want to look smart? You cannot prefer this over the normal background??
    I came from the monochrome crt world. Those screens had contrast, this does not, its not readable.