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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:56:49+00:00 2026-06-10T01:56:49+00:00

I was comparing CherryPy and Flask when I ran into the Werkzeug Debugger ,

  • 0

I was comparing CherryPy and Flask when I ran into the Werkzeug Debugger, which I really like. What wonders me:

Is it possible to integrate Werkzeug’s debugger into CherryPy? If so: how?

When I tried to integrate it myself, I got the console working (/console), but not the exception handler.

EDIT:
Seems like CherryPy catches the errors and handles them, before Werkzeug gets them.

  • 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-10T01:56:50+00:00Added an answer on June 10, 2026 at 1:56 am

    In my edit I described that CherryPy catches the errors. In the config throw_errors can be set to True. For me, setting cherrypy._cprequest.Request.throw_errors = True did this. The whole code is:

    import cherrypy
    from cherrypy import wsgiserver
    
    from werkzeug.debug import DebuggedApplication
    
    class Root(object):
    
        @cherrypy.expose
        def index(self):
            return "Hello World :)"
    
        @cherrypy.expose
        def page(self):
            # Error:
            return self.self.self.pas
    
    cherrypy._cprequest.Request.throw_errors = True
    
    app = cherrypy.Application(Root(), script_name=None, config=None)
    app = DebuggedApplication(app, evalex=True)
    
    d = wsgiserver.WSGIPathInfoDispatcher({'/': app})
    server = wsgiserver.CherryPyWSGIServer(('0.0.0.0', 8080), d)
    try:
        server.start()
    except KeyboardInterrupt:
        server.stop()
    

    I’m sure, there are better ways to do it, but I’m a newbie concerning CherryPy and this hack worked for me.

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

Sidebar

Related Questions

Possible duplicate : comparing-two-arrays I have two NSArray and I'd like to create a
Possible Duplicate: Comparing Two Arrays Using Perl How can I print values which exist
When comparing a tuple with a list like ... >>> [1,2,3] == (1,2,3) False
I am comparing different clustering methods and I would like to see if two
Usually comparing with false is done like this where false is on right side:
Comparing the two data models in an asp.net MVC app, which provides better performance,
Comparing javax.swing.Timer , java.util.Timer and Thread , which method is the best CPU utilization
Possible Duplicate: comparing two strings with comma seperated values I am working in C++,
I need help with comparing two files in makefile. I need something like this:
I am stuck in comparing two unicode strings in PHP which both contain the

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.