Return to Video

Find Dependency - Software Debugging

  • 0:00 - 0:02
    Let us take a look again
  • 0:02 - 0:04
    at our remove html markup function.
  • 0:04 - 0:08
    Here I'm going back to the earlier version,
  • 0:08 - 0:10
    which is sort of fixed.
  • 0:10 - 0:14
    Now let's take a look at this condition up here.
  • 0:14 - 0:16
    We want to know where the core value
  • 0:16 - 0:18
    could possibly have come from
  • 0:18 - 0:21
    To do so, we follow the data dependencies.
  • 0:21 - 0:23
    What are the statements that this statement
  • 0:23 - 0:25
    is data dependent upon?
  • 0:25 - 0:27
    To do so, we will look at the places
  • 0:27 - 0:29
    where quote would be written.
  • 0:29 - 0:32
    And which also would be executed
  • 0:32 - 0:35
    before this statement will be executed.
  • 0:35 - 0:38
    For instance, this statement would be data
  • 0:38 - 0:40
    dependent on that earlier statement.
  • 0:40 - 0:43
    Because here quote is being written,
  • 0:43 - 0:45
    and here quote is being read.
  • 0:45 - 0:48
    Therefore, the statement A up here sets the state
  • 0:48 - 0:51
    that B later on keeps on processing.
  • 0:51 - 0:54
    If you want to understand how B behaves,
  • 0:54 - 0:56
    we follow the data dependencies to A
  • 0:56 - 0:59
    and find that this is one of the statements
  • 0:59 - 1:01
    that sets the state that B depends upon.
  • 1:01 - 1:03
    Now for a quiz.
  • 1:03 - 1:07
    Which are the other statements that B data depends upon?
  • 1:07 - 1:09
    Is this for C in S,
  • 1:09 - 1:13
    is this elf of C equals the greater sign and not quote,
  • 1:13 - 1:15
    is this quote equals not quote,
  • 1:15 - 1:18
    or is this out equals out plus C?
  • 1:18 -
    Check all that apply.
タイトル:
Find Dependency - Software Debugging
Team:
Udacity
プロジェクト:
CS259 - Software Debugging
Duration:
01:22
Udacity Robot edited 英語(米国) subtitles for 04-19 Find Dependency
Fran Ontanaya edited 英語(米国) subtitles for 04-19 Find Dependency
Amara Bot added a translation

English subtitles

改訂 Compare revisions