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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:31:10+00:00 2026-05-23T02:31:10+00:00

Is it possible to dump the complete program execution in java? I have to

  • 0

Is it possible to dump the complete program execution in java? I have to go through a complete process flow for a execution for a specific input values. Using step over, step into is a bit time consuming and I wanted to find out if any java command dumps the execution?

  • 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-23T02:31:10+00:00Added an answer on May 23, 2026 at 2:31 am

    If I understand correctly, you want something like a view of all the method calls that happen when your program processes some set of inputs. You can often get this kind of information out of a profiler, such as JProbe:

    http://www.quest.com/jprobe/

    You can run the program under JProbe, and then it will present a visual call graph of all of the method calls or a list of all method calls along with their frequency of execution.

    Somewhat related are static analysis tools, such as Understand:

    http://www.scitools.com/

    Static analysis tools tend to focus on figuring out overall code structure rather than what happens with a specific set of inputs though.

    Of course, you can always change code, but it’s probably too much work to change every method in a large system to print a debugging string. Aspect-oriented programming tends to be a good approach for this kind of problem, because it’s a cross-cutting concern across the codebase. There are a few different Java AOP solutions. I’ve used Spring AOP with dynamic proxies, which isn’t enough to cover all method executions, but it is good enough for covering any method execution defined on an interface for a bean managed in a Spring container:

    http://static.springsource.org/spring/docs/3.1.0.M1/spring-framework-reference/html/aop.html

    For example, I’ve written a TimingAspect that wraps the execution of a method and logs its execution time after it completes. When I want to use it, I update my Spring applicationContext.xml to specify pointcuts for the methods I want to measure. You could define a similar TracingAspect to print a debugging message at the start of each method execution. Just remember to leave this off for production deployment.

    For all of these approaches, measuring every single method call is probably going to cause information overload. You’ll probably want to selectively measure just a few important pieces of your own codebase, filtering out core JDK methods and third-party libraries.

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

Sidebar

Related Questions

Is it possible to get input from a user using PHP CLI, then dump
Is it possible to get a thread dump of a Java Web Start application?
Possible Duplicate: How do you send email from a Java app using Gmail? How
I'm using derby for development in eclipse. Is it possible to dump a table
Is it possible to save/dump core file using gdb? Sometimes I want to save
Is it possible to dump only part of a database? I have a database
So I have an SQL dump file that needs to be loaded using mysql_query().
Is it possible to see thread performance counters in dump of native c++ application
Possible Duplicate: How does the Google Did you mean? Algorithm work? Suppose you have
Possible Duplicate: Dump a mysql database to a plaintext (CSV) backup from the command

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.