C# Debugging: Breakpoints

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ • 44

  • @RalfsBalodis
    @RalfsBalodis 4 роки тому +14

    0:00 - Getting an exception
    2:12 - Creating a break point and how does it work
    4:21 - Step Into (Breakpoint controls) and debugging.
    12:16 - Breakpoint pinned values
    15:41 - Breakpoint Actions - logging breakpoint values
    19:28 - Breakpoint Conditions - hit breakpoint under conditions
    22:45 - Step Out (Breakpoint controls) - go through method you stepped in
    25:18 - Step Over (Breakpoint controls) - don't go in to called methods

  • @xianyu6565
    @xianyu6565 4 роки тому +4

    I thought I already know this topic, but "pin" and "action" are new to me. Glad that I watched it! Thanks, as always!

    • @IAmTimCorey
      @IAmTimCorey  4 роки тому

      I am glad you learned something new.

  • @MrLuckyalmond
    @MrLuckyalmond 4 роки тому +2

    Action is going to be extremely useful for me going forward. Thanks, Tim!

  • @summerbreeze25syria
    @summerbreeze25syria 4 роки тому

    I have been coding since 6 and I have never thought of using this, Thank you for the demonstration.

  • @k42p3r
    @k42p3r 8 років тому +7

    What a great tutorial - even though the sound was a bit low. Thanks!

  • @jaxparrow1794
    @jaxparrow1794 2 роки тому

    Sir, this video has been invaluable.

  • @scottlachance2914
    @scottlachance2914 8 років тому +2

    Tim, your videos are really great learning tools. You voice is perfect for this (you must have taken public speaking)
    Can you cover the topic of remote debugging in the future?
    I have seen many times where on my dev machine the code runs fine, but out on a production PC with the same application installed we have run-time issues.
    keep up the excellent videos,
    Thanks

  • @TheRedjinator
    @TheRedjinator 3 роки тому

    Thank you! I wish more information I went looking for was explained so well.

    • @IAmTimCorey
      @IAmTimCorey  3 роки тому

      I have deep explanations of a lot of C# topics on this channel.

  • @Alquien13
    @Alquien13 Рік тому

    Here comes a very useful tip:
    If an error occurs in an extensive loop pass, you know in which line it happens, but not in which pass.
    In such a case, it helps to set a debug point on the line in question and to set a number of hits as a condition that is so high that it can never be reached (e.g. 99999).
    If you run the application again and the error occurs, you can move the mouse over the debug point and see how many runs it took.
    Then change the number of hits to exactly this value and run the application again.
    Now the execution stops exactly at the line that caused the error and this happens in the pass in which the error occurs.
    Now you can look at the values of the variables and see what doesn't fit.

  • @lycagos1278
    @lycagos1278 6 років тому +2

    perfect tutorial about debugging

  • @davidramirez3322
    @davidramirez3322 6 років тому +2

    Thank U very much! very helpfull and powerfull doing things well since details.

    • @IAmTimCorey
      @IAmTimCorey  6 років тому

      You are most welcome. Thanks for watching.

  • @ZeroSleap
    @ZeroSleap 5 років тому

    About getting a general idea where an exception is thrown,in the first run of the program the program shows the line an exception occured so i guess one can start from there.

    • @IAmTimCorey
      @IAmTimCorey  5 років тому

      That is a good place to start, although that line number can be deceiving.

  • @audunjohansen
    @audunjohansen 4 роки тому +1

    Thanks, great Video :)

  • @mgcmsn
    @mgcmsn 5 років тому +3

    God bless you!

  • @ikazuchi-san5772
    @ikazuchi-san5772 3 роки тому

    wish i knew about this before
    i used to place variables before the error came and comment the rest of the code
    its much better now - thx

  • @confidential303
    @confidential303 5 років тому

    I have some debugging experience and therefore I really Like Visual Studio learning programming in C#. But, I am really wandering if with other languages like Java, Python also have (advanced) debugging options ..because without debugging sourcecode I will not like to program in it!

    • @IAmTimCorey
      @IAmTimCorey  5 років тому

      All languages have some way of debugging. Visual Studio does have really nice tools though.

  • @WaldemarCoding
    @WaldemarCoding 8 років тому +1

    Well done 👍

  • @2rivan
    @2rivan 7 років тому

    Why are you use "FirstName.Substring" instead of "FirstName[i]" ? Is it better for perfomance or something like this?

  • @rashidselemani475
    @rashidselemani475 2 роки тому

    Thanks you Sir!!!

  • @RuhulAmin-og7wi
    @RuhulAmin-og7wi 3 роки тому

    nice video... where i can get all o these source code? can anybody help?

  • @itshassanaziz
    @itshassanaziz 3 роки тому +1

    Hard to hear you, sound is very low. Great video though. Explained well and in a simple manner.