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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:52:09+00:00 2026-06-11T18:52:09+00:00

Break points on User Defined object properties in javascript Hello Is there is any

  • 0

Break points on User Defined object properties in javascript

Hello

Is there is any JavaScript debugging tool or addon that helps to put break points on
User Defined object properties.

Eg:

I have a JavaScript Object Literal


var TextBox = {
color:"gray",
size:"100px",
border:true
}

Here is my code that does the modification


function foo(){
TextBox["color"] = "blue";
}

I am looking for putting a breakpoint on TextBox.color so that when the property is modified I could find
who is doing the modification or which function does the alteration.

It should also break when

TextBox.color = null;
or
delete TextBox.color;

Is this feature already available in firebug or chrome developer tool?

I have already seen breakpoints for html element removal , attribute modification
but not for user defined object properties.

Thanks.

  • 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-11T18:52:10+00:00Added an answer on June 11, 2026 at 6:52 pm

    Have a look at the magic getters and setters that some browsers support:
    https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Working_with_Objects#Defining_getters_and_setters

    You should be able to define a setter and put a breakpoint in it.

    Probably best to keep these out of production code for compatibility reasons, but they’re the only practical way to debug certain problems.

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

Sidebar

Related Questions

I have set break points on my attached properties SetXXX and GetXXX static methods.
I've used the debugger and break points to pin point down what line of
I am trying to break execution with Debug points in a Visual Studio extension
How can I set a break point in a javascript function and have the
Is there any way to create breakpoints in clojurescript? Either in the repl or
Im attempting to bind a button in a user control to a command defined
I have a set of basic breakpoints defined in a user-defined fn setup in
I'm trying to copy Apple's behavior in video playback that allows the user to
EDIT I tried debugging this with xdebug and netbeans. It's weird that the exports
I have an application that throws many (handled) exceptions. There is one type of

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.