Created
September 28, 2021 21:43
-
-
Save giuseppeg/088605d00efe7549ae3eab15939895d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function track(name) { | |
const dummy = /./; | |
dummy.toString = () => { | |
alert(`${name} was debugged`); | |
return 'tracked'; | |
}; | |
return dummy; | |
} | |
function test() { | |
const tracked = track('test'); | |
console.log('hello') | |
} | |
debugger; | |
test() // step in test() and step over to L12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment