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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T22:31:55+00:00 2026-06-05T22:31:55+00:00

Some projects are so big that in order to understand for example a function

  • 0

Some projects are so big that in order to understand for example a function call requires you to go through many different blocks of code all throughout the project(e.g. in projects with scarcely documented api’s). Many times just looking at it isn’t always enough, I need to often write it down because you need to look back and forth between the different code blocks.

Is there any program that allows you to insert a function/method or class and get a complete traceback report for that with all the code it calls upon? It would also be handy if at the same time that program showed you the directory structure of that code.

Edit

====

I refined my question in this stack thread. I would prefer not to startup a gui for this process each time. Just one python function call to get the trace output seems the best solution.

  • 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-05T22:31:56+00:00Added an answer on June 5, 2026 at 10:31 pm

    The answer to this question is from this stack thread.

    import trace
    
    def trapy(arg):
        tracer = trace.Trace()
        tracer.run(arg)
        r = tracer.results()
        r.write_results()
    
    if __name__ == '__main__':
        import module_name
        trapy('module_name.function_name()')
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In some projects that I work, was added some blocks with this syntax: var
I have some projects on bzr code repositories shared with colleagues. Problem is, I
Yesterday I felt in big issue that happens with all my projects. After I
I realized that many of my past projects have suffered from too much ajax.
So I've got a solution that contains a few big projects, which I'm trying
I have a big project compiled into libProject.so-file (shared library), I made some modules
In some projects, but not all, when I open a designer for the first
when compiling some projects on linux terminal, I get usually a long output consisting
I have some projects for which I have ceased development a long time ago
i found some articles, some projects to create thumbnail of a video, using ffmpeg.exe,

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.