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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T11:03:59+00:00 2026-06-05T11:03:59+00:00

I would like to add a breakpoint to a pydev project. I am using

  • 0

I would like to add a breakpoint to a pydev project. I am using eclipse with the pydev plugin. I am running Windows 7. The file I want to debug is located at C:\cygwin\workspace\project\main.py .

When I attempt to add the breakpoint by double-clicking to the left of the line on which I want the breakpoint, the breakpoint appears to be visually present in the file, but then I get this error when I click debug:

pydev debugger: warning: trying to add breakpoint to file that does not exist: /workspace/project/C:\cygwin\workspace\project\main.py

Note that the file still appears to run fine both in debug and normal run modes. I can also run the file outside the ide by running python main.py.

  • 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-05T11:04:00+00:00Added an answer on June 5, 2026 at 11:04 am

    I was actually able to get this working. I realize I’m using PyCharm, but the solution should be easily adapted since they both use PyDev. The basic problem is that the IDE is expecting windows paths while PyDev is expecting cygwin paths. I found the appropriate places in PyDev to do those conversions.

    Here’s my setup

    • configure your project to use a python for cygwin binary (this may not be necessary)
    • edit Program Files/JetBrains/PyCharm 2.5/helpers/pydev/pydevd.py. This converts the paths sent to the debugger to cygwin paths. Around line 597, where file = NormFileToServer(file) is located, make the following changes

                  orig_file = file
                  file = NormFileToServer(file)
      
                  if not os.path.exists(file):
      
                      file = orig_file.replace('c:/cygwin','')
                      file = file.replace('\\','/')
                      file = file.replace(' ','\ ')
                      file = NormFileToServer(file)
      
                      if not os.path.exists(file):
                          sys.stderr.write('pydev debugger: warning: trying to add breakpoint'\
                              ' to file that does not exist: %s (will have no effect)\n' % (file,))
                          sys.stderr.flush()
      

      do the same filename conversion a few lines later under the elif cmd_id == CMD_REMOVE_BREAK statement

    • edit Program Files/JetBrains/PyCharm 2.5/helpers/pydev/pydevd_comm.py. This converts paths sent back to pycharm into windows paths. Around line 549 alter the code to look like this:

                  myFile = pydevd_file_utils.NormFileToClient(curFrame.f_code.co_filename)
                  myFile = "C:\cygwin" + myFile
                  myFile = myFile.replace('/','\\')
      

    Adjust the paths as needed. The big thing that helped me figure this out was to add PYCHARM_DEBUG=True in the environment variables of the PyCharm run/debug configurations.

    Hope this saves someone else the 6 hours I spent figuring this out!

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

Sidebar

Related Questions

I would like to add an item into a picture Library using c#. This
I have own project and i would like add for this class same as
I would like to add some paragraphs or new lines or words dynamically but
I would like to add a field to the Django FlatPage database model, but
I would like restfully add a parameter to the new named path. So for
I would like to add some custom data to an image the user generates
I would like to add authentication to my Rails app. I came across few
I would like to add an overlay image on a Google Map. The image
I would like to add a preprocessor to HTML pages. Basically, I have a
I would like to add some data to the body of a http request

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.