Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Cannot Get Cloud Debugger to Work #37

@nvictor

Description

@nvictor

Hi,

We have tried setting up Cloud Debugger for our application but kept getting: The debugger could not find a debug target for the application. Below are our environment specification:

Environment: App Engine Standard
Python version: 3.9
Cloud Debugger API: enabled

Here's the entirety of our app.yaml:

runtime: python39

handlers:
- url: /static
  static_dir: static
  
- url: /.*
  script: auto

And the entirety of our entry point in our main.py:

if __name__ == "__main__":
    # NOTE(victor): GCP debugger
    try:
        # NOTE(victor): This client is only available for Linux
        import googleclouddebugger
        googleclouddebugger.enable()
    except ImportError:
        pass
    app.run(host="127.0.0.1", port=os.environ.get("PORT", 8080))

We have google-python-cloud-debugger in our requirements.txt. This was validated by uncommenting the import statement. The application restarted and worked fine.

We have scoured the web for an answer for could not find any.

Thanks in advance for your suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions