Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pydev can't debug in ThreadingHTTPServer #205

Closed
kanehekili opened this issue Nov 8, 2021 · 1 comment
Closed

pydev can't debug in ThreadingHTTPServer #205

kanehekili opened this issue Nov 8, 2021 · 1 comment

Comments

@kanehekili
Copy link

Running latest pydev in Eclipse 4.17 with python 3.9.
Have a small ThreadingHTTPServer that runs its loop in "server_forever". All code invoked by the server (like do_GET) are not reachable by the debugger any more.
Here a snippet, that will prevent debugging any further code:

        MyHTTPHandler.AppConnector = SomePlugin()
        server = ThreadingHTTPServer(('', int(port)),MyHTTPHandler)
        print('started httpserver...')
        server.serve_forever()

         class MyHTTPHandler(SimpleHTTPRequestHandler):
         def do_GET(self):
              print("Do Get") #will not stop on breakpoint

Using a simple "HttpServer" will work. The test can be invoked with:
curl localhost:<port>/Some.Text

@kanehekili
Copy link
Author

The eclipse resources have to be deleted, which leads to reimporting the workspace. It doesn't make sense, but it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant