Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8657143
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:26:58+00:00 2026-06-12T15:26:58+00:00

What I want I want to be able to run a whole script in

  • 0

What I want

I want to be able to run a whole script in node during debugging with node-inspector and Web Inspector. – I don’t want to step through the individual JavaScript calls.

What I did

(My PowerShell Instructions)

PS C:\Users\JK> node-inspector
   info  - socket.io started
visit http://0.0.0.0:8080/debug?port=5858 to start debugging
...

==[In another PowerShell instance:]==

PS %> node —debug-brk myscript.js
debugger listening on port 5858

Why I want that

I’m writing a node script. In this script I console.log a lot of objects in order to be able to explore them during the debugging process. But the simple static textual console output isn’t really nice – You can’t fold and expand your object’s properties or get the source code of a function:

(For Example)

{ [Function: Xy]
  a: [Function],
  b: 8.2,
  c: [Function],
  d: [Circular],
  e: '2011-11-11' }

So I decided to use Web Inspector with node-inspector in order to get a good object browse experience (because of Web Inspector’s nice output formatting).

Why I Don’t Step Through

(Structure of My Script)

var fs = require('fs');

fs.readFile('myfile', function (err, data) {
    if (err) {
        throw err;
    }

    //My Script...

    console.log(something);
});
  1. The console.log() calls are executed in a callback function of
    require('fs').readFile(). I won’t get there just with “normal”
    steps.
  2. It’s simply boring the click the Step buttons again and again.

My Questions

  • Is there a possibility to run a script without stepping through using the following Web Inspector user interface? (I don’t want to use node —debug myscript.js instead of node —debug-brk myscript.js because then Inspector throws Error: connect ECONNREFUSED
    Is node running with --debug port 5858?
    because the script runs too fast)

(Web Inspector Interface)
Web Inspector Interface

  • Or is there at least any other way to do what I described above (in the Why I want that section).

Thanks. –
(I hope it’s clear what I wanted to ask. – Please write a comment if it isn’t.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:26:59+00:00Added an answer on June 12, 2026 at 3:26 pm

    You have a couple options.

    Using --debug-brk:

    1. Start your script, let it stop on the first line.

      In the Script pane, click the line number inside the callback (line
      4 in this
      example).

      Click “Continue” (the “|> icon above the right-hand panel).

    Using --debug:

    1. Add the line debugger; to your callback. This will stop the
      debugger at that point. Click “|>” when you’re done.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to be able to launch a Run Script Build Phase in XCode
I want to be able to run Junit tests from the command line, but
I want to be able to run netstat -n and grab the output somehow
Is there any drawback to this setup? I want to be able to run
I'm using GNU Emacs on Win32. I want to be able to run jslint
I want a simple C method to be able to run hex bytecode on
I don't want people to be able to find all of my code just
I want to run a php script on christmas that will email my family
I am very new to programming. I want to be able to run this
I am writhing shell script. I want three script to run in different terminal.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.