I’m pretty new to chrome developer tools and i notice when i put in a break point and refresh the page that sometimes the page pauses at the break point and sometimes it doesn’t. Does the break point have to be within a function or outside of a function in order for it to application to pause at the break point? Im trying to check and see if some values are defined or undefined..
Share
A
breakpointtells the debugger to stop when execution reaches the statement with saidbreakpointand can be placed on anystatement.Depends on what you want to debug. If you want execution to stop when the page reaches the
functiondefinition, then set abreakpointon the “outside”. If though, you want to break when the function is called, set it somewhere “inside” the definition of thefunction.