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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:39:37+00:00 2026-06-05T05:39:37+00:00

I was halfway of changing my code to print a Log message each time

  • 0

I was halfway of changing my code to print a Log message each time I enter and exit a method. When I thought that probably there is some feature or plugin for Eclipse that can track it for me and show me. After all, this is information the java compiler has at hand.

What I need is to see the order in which each method is called and returns.

It should print the method name and all the stack above it, so I can know who called.

Optionally, if it prints the time of enter and return and the difference, it would be good info for profiling.

I remember trying TraceView in the past, I don’t know if it is the answr, but I clearly remember that there was too much information there and I could not get a clear picture of what was going on.
If someone knows how to properly use it to get only the info I need, it would be great too.

UPDATE:
I am having hard time using TraceView and his companion dmtracedump. I did something I wasn’t supposed to do, I searched dmtracedump code source and look into it.
This is code producing the error message I am getting.

TraceData data1;
DataKeys* dataKeys = parseDataKeys(&data1, gOptions.traceFileName,
                                   &sumThreadTime);
if (dataKeys == NULL) {
    fprintf(stderr, "Cannot read trace.\n");
    exit(1);
}

But I don’t know how to fix the trace file.
It is generated by Debug.startMethodTracing("tracefile");

I wish there was a way to tell the Java compiler to print each method call. I am quite frustrated at this point.

  • 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-05T05:39:38+00:00Added an answer on June 5, 2026 at 5:39 am

    I found a way to modify the file by myself to insert and delete Log messages anywhere in my source.

    I wrote it in this post

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

Sidebar

Related Questions

I was halfway through working on this piece of code and thought this is
On this page: http://flowplayer.org/tools/tabs/slideshow.html Halfway down the page I find this code under the
First off, I read all of the suggested questions that sounded halfway relevant and
So I am picking up a project that was quit halfway through by the
The company that I work for has and continues to put together some halfway
I've been trying to make a short animation that reverses halfway through with a
I have simple php validation form that is halfway working. If you leave the
I am halfway through an OOP project in the finance industry, and I'm looking
I think i was doing halfway good to get this to halfway work. Anyways
When I run this code, About half-way through the concatenation loop, $xml becomes null

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.