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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T04:48:31+00:00 2026-06-03T04:48:31+00:00

This is a rather complicated question that may simply be impossible with what’s currently

  • 0

This is a rather complicated question that may simply be impossible with what’s currently available, but if there was an easy way of doing it it would be huge.

I’m debugging some JavaScript in Chrome, and because it’s very event-driven, I prefer to get trace reports of the code (what got called, etc.) instead of breakpoints. So wherever I leave a breakpoint, I’d like to see the local function name and arguments.

The closest I can get is to drop a conditional breakpoint in, like the following:

Sample trace

There are two big problems with this approach:

  1. Pasting this into each breakpoint is too cumbersome. People would be far more likely to use it if it could be chosen as the default action for each breakpoint.
  2. In Google Chrome, the log calls get fired twice.

Any ideas on a way to surmount either of these problems? I think it might be possible in IE with VS, but the UI there seems equally cumbersome.

  • 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-03T04:48:32+00:00Added an answer on June 3, 2026 at 4:48 am

    I couldn’t find something to do this, so I wrote my own.

    Now, instead of constantly inserting and removing console.log calls, I leave the logging in and only watch it when necessary.

    Warning: specific code below is untested.

    var debug = TraceJS.GetLogger("debug", "mousemove");
    $('div').mousemove(function(evt) {
         debug(this.id, evt);
    });
    

    Every time the mouse is moved over a DIV, it generates a logevent tagged [“mousemove”, {id of that element}]

    The fun part is being able to selectively watch events. When you want to only see mousemove events for element #a, call the following in the console:

    TraceJS('a');
    

    When I want to see all mousemove events, you can call:

    TraceJS('mousemove');
    

    Only events that match your filter are shown. If you call TraceJS(no argument), the log calls stop being shown.

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

Sidebar

Related Questions

This may be rather noobish but I'm gonna ask anyhow. I have a class
This is admittedly a rather loose question. My current understanding of singletons is that
This seems like a very simple question, but I've only found complicated answers. I've
This is complicated, but I will do my best to explain my question. Object
I always found this rather annoying fact about applets, that they disappear if you
I know this is rather laughable, but I can't seem to get simple C++
Know this might be rather basic, but I been trying to figure out how
I realize this is a rather odd request, but I was wondering if anyone
I have a rather complicated question (for me at least) I have the following
I know this is a beginner's question, but I've been searching online and all

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.