Welcome to the Linux Foundation Forum!

Lab 4.2 - Setting a Breakpoint Using a Code Keyword

Question: The labs-2 folder has an ​app.js​ file, edit the file so that when started in Inspect mode it willpause in the first line of the ​f​ function.

function f (n = 99) {
debugger
if (n === 0) throw Error()
f(n - 1)
}

f()

Problem: I have given the command 'node --inspect app.js'
My application is not stopping in line 2. Am i doing something wrong here.

Comments

Sign In or Register to comment.