Chrome Debugger for JS file only

NewAtLearningThis :

So. Dumb question.

I am using developer tools on chrome as essentially my IDE in the source tab. I have a JS file writing a program with no associated html/css files. Is there anyway for me to utilize the debugger for my JS file? Specifically I want to step into a function

Jun Zhou :

In developer mode, select Sources tab, then navigate to your JS files in the left side. In the right panel, you can add a breakpoint to any line by pressing the line number which has a real js statement. Then you can run your application again to debug your js scripts.

The picture below is an example(Line 33 of assert.js is selected).

enter image description here

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=31983&siteId=1