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

  • Home
  • SEARCH
  • 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 8454645
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:04:49+00:00 2026-06-10T12:04:49+00:00

I am writing a Node.js application in which I fill an Object with data

  • 0

I am writing a Node.js application in which I fill an Object with data using string-turned-integers as keys (e.g. “62616324573”). Objects always store keys {key:} as Strings, which is ideal compared to the way javascript arrays and their [index] work:

An array defines a million times undefined, once for every index between defined indices.

However, I found that I cannot debug my new objects properly because the Variables panel in Eclipse displays Failed to read variables. Internally they seem to work fine.

Take the following code:

var util = require('util');
util.debug('Run this with --debug-brk=port, and press Resume (F8) to break at the breakpoint below.');

var debugMe = {
    "1000000000" : {
//  "2011743958" : {
        "some" : 1234,
        "random" : true,
        "data" : undefined
    },
//  "1000000001" : {
//  "8302611133" : {
    "3302611133" : {
        "some" : 12345678,
        "random" : false,
        "data" : null
    }
};

util.debug(JSON.stringify(debugMe)); // Look, it prints fine in all cases. This is internal javascript code.
util.debug('...');
util.inspect(debugMe); // And now it doesn't. This is V8 debugging code.

var breakpoint_here = true; // Set breakpoint here!

// hohoho

Set a breakpoint at breakpoint_here and run this with instant-break debugger, e.g. node --debug-brk=5858 debugtest.js. Press resume to jump from line 1 to the breakpoint. Go to your Variables panel and try to inspect debugMe: the panel will crash.

Try again with 10..00 and 10..01. No problem. Except, the numbers appear to be parsed as an array index (!) judging by the way it is written.

debugMe ->
  [1000000000] -> [Object]
  [1000000001] -> [Object]

Now try the 10..10 and 83..02. Suddenly, 83..33 is a normal JSON key instead of an array index, but 10..00 is still an array index. (?)

debugMe ->
  8302611133 ->  [Object]
  [1000000000] -> [Object]

Now try 10..00 and 33..33, and the Variables window will crash again. This is what I expected:

debugMe ->
  1000000000 -> [Object]
  3302611133 -> [Object]

This is what I am guessing is happening, although you can’t actually see it when debugging an object that still cooperates:

debugMe ->
  [1000000000] -> [Object]
  [1000000001] -> undefined
  // (...) // debugger memory fills up
  [3302611132] -> undefined
  [3302611133] -> [Object]

The problem I am guessing is that the numbers in this case are both array indices and the difference is too large, because the debugger will remember 2302611133 times undefined, a problem that should only exist when array is used in stead of JSON object.

  • Why are some numbers taken as key (string) and others taken as index?
  • Why do some combination of indices work in the debugger, and others don’t?
  • Is the “million times undefined” problem without me knowing also happening with objects?

Let me recap:

  • Small differences in string-cast integers ‘int’ seem to work fine, but in the debugger they become [indices]
  • Big differences up to about a billion in the key don’t work, Variables window crashes. No console output.
  • Even bigger differences work again, but some become [index] and others stay ‘key’.

Because I had to do manual crashtests, it has taken me forever to find out the problem was in the numbers, and not the contents of the objects themselves. It’s hard to imagine the problem affects only the debugger and not the application itself, because it’s the same (V8) engine. I’m hoping someone can point out all the facts and variables I am missing.

-update-

No one seems to know about this. Not known logic, nor a known bug. I filed a bug at Eclipse WDT, although I am not sure that’s the source of the behavior.

  • 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-10T12:04:51+00:00Added an answer on June 10, 2026 at 12:04 pm

    Asker here,

    Short:
    It’s a bug. Use potatoesalad as a workaround. (see other answer)

    Longer:

    The lack of response makes me believe there is no logic, and this is in fact a bug.

    At first, I was unclear to the source of the bug (Eclipse/WDT/Node/V8), so I filed a bugreport at Eclipse.

    The bug turned out to be not_eclipse, so I re-filed the bugreport at the Chrome Dev Tools project.

    This bug was accepted, and turned out to be two bugs:
    Issue 76, and
    Issue 77.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently writing a chat application which will run on Heroku. I'm using Node.JS
I'm writing a web application using node.js & express to provide a real-time aprs
I am writing a node app that needs to remember data across connection iterations
I am working on re-writing an existing web site using Node.js with Express. Front-end
A web app I am writing in JavaScript using node.js. I use Foreman, but
I am writing an application which needs to add nodes to an existing XML
So I am writing a mac application that parses SF Giants baseball statistics using
I'm writing an integration test for a rails application using Capybara within Rspec. After
I'm writing a node application and I would like to get the name of
I'm writing an application which processes a lot of xml files (>1000) with deep

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.