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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:30:39+00:00 2026-05-25T11:30:39+00:00

we´re having python source code stored in a sql database, the code is build

  • 0

we´re having python source code stored in a sql database, the code is build together to a virtual python module and can be executed.
We want to debug this modules but then of course the Eclipse debugger host doesnt know where to find the source code for these modules.

Is there a way to provide pydevd with the location of the source code, even if that means to write down the files to disk?

  • 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-25T11:30:39+00:00Added an answer on May 25, 2026 at 11:30 am

    Write it to the disk and when doing the compile pass the filename for the code (and, when you’re not in debug mode, just don’t write it and pass '<string>' as the filename).

    See the example below:

    from tempfile import mktemp
    
    my_code = '''
    a = 10
    print a
    '''
    
    tmp_filename = mktemp('.py', 'temp_file_')
    with open(tmp_filename, 'w') as f:
        f.write(my_code)
    obj = compile(my_code, tmp_filename, 'exec')
    exec obj #Place breakpoint here: when stepping in it should get to the code.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am having trouble with the Python multiprocessing module. I am using the Process
I'm having trouble with MySQL or Python and can't seem to isolate the problem.
I want to build mod_wsgi against a Python which I have built myself from
How can this Mathematica code be ported to Python? I do not know the
I want to query my XAMPP mysql database with python. However, it seems like
Im having a problem with python.. I have a binary tree node type: class
Having successfully installed opencv 2.0 with python bindings I'm starting to run into trouble
Having been a hobbyist programmer for 3 years (mainly Python and C) and never
Having seen the advantages of metaprogramming in Ruby and Python, but being bound to
I'm having terrible trouble trying to understand python scoping rules. With the following script:

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.