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 7415323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:16:48+00:00 2026-05-29T07:16:48+00:00

In a JavaScript application that I am working on I have an array of

  • 0

In a JavaScript application that I am working on I have an array of objects:

function Message(title, message) {
    this.title=title;
    this.message=message;
}

var MessageArray = new Array();
MessageArray[0] = new Message("Some Title", "Some new message.");

I have an issue that I need to debug. Is there any way to read or sniff the current objects in the array, including their title and message properties? I could add another function to alert() me with those values, but if there is a tool that I could use much like the Visual Studio debugger then I would love to know about it. I took a look at Firebug but it does not seem to have this capacity.

To be clear, I am looking for a debugger that will let me inspect any variable at runtime, not specifically MessageArray at the moment. I did find Chrome’s Scope Variables pane, but it seems to only list scalars, not arrays!

  • 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-05-29T07:16:51+00:00Added an answer on May 29, 2026 at 7:16 am

    Most modern browsers have a built in developers console with all the functionality of a normal debugger. Breakpoints and variable inspecting ect. In chrome you can open it through the tools menu or by pressing f12.

    You can also use the JavaScript Console.log(); to log anything you want to the developer console. This stop you using alerts which stop JavaScript executing while the alert it up.

    In the case console.log(MessageArray[0].title, MessageArray[0].message); would print out the title and the message to the console.

    EDIT:

    Here is a screen shot of the console inside chrome. Showing me create your objects and then interacting with them via the console.

    enter image description here

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

Sidebar

Related Questions

I am currently working on rails3 application that uses jQuery. I have a javascript
Background I'm working on a an educational JavaScript application/site (SPA) that will eventually have
I'm working on a small silverlight application that involves passing some data between javascript
This is the scenario: I'm working on a new ASP.NET application that uses master
I have created a JavaScript application that has a lot of array manipulations (sorting,
I have an AJAX Application that I have been working on. At this point
I need JavaScript working almost perfectly in my application that should be able to
I'm working on a web application that has a lot to download (javascript, images,
I have a PHP application that makes extensive use of Javascript on the client
I have a web application that uses TONS of javascript, and as usual, there

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.