Hi Tony,

If you comment out line 1849:   handler.AddDebuggingConsole(relative_url,
env, outfile)

In google/appengine/tools/dev_appserver.py, I believe this will prevent the
Debugging Console from being displayed.

-Marzia

On Sun, Dec 7, 2008 at 8:49 AM, Tony Smith <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> It seems that when you send GET parameter debug=True in your url
> (http://localhost:8080/?debug=true), the GAE dev server automatically
> outputs a debugging console to every request. This is a major problem
> with applications that expect to get a certain response from the
> server and instead they get the expected output plus the code appended
> by GAE.
> Unfortunately, to debug another component of my application I am
> forced to send debug=true in my URL. So I can't just change the name
> of the parameter.
>
> Is there any way to disable the behavior of the GAE dev server to not
> output the console when CGI parameter debug is present?
>
> Just to be clear, I am not talking about the debug=True from
> webapp.WSGIApplication. This is a parameter that you send in the URL
> as a GET parameter. For example: http://localhost:8080/?debug=true
>
> Why do application servers use parameters with common names like:
> debug as reserved names that do something.
> Why not use something like: appenginedebug=true and my other appserver
> could use another name. Why do they insist on using common names like:
> debug?
>
>
> This is comment that the GAE dev server is appending to every
> request:
> <!--
>    The below HTML code was generated and appended by Google. It's
> purpose is
>    to display a logging console in the browser. It's appearing here
> because
>    either:
>
>      (a) the CGI parameter "debug" was in the URL
>      (b) the cookie "_ah_severity" was present in the HTTP request
>
>    To stop this from being appended, you should remove the CGI
> parameter
>    "debug" from the request URL and then either click the "Close"
> link on the
>    logging console, or delete the "_ah_severity" cookie.
>
>    All element ids used by the code for this logging console are
> prefixed
>    with "_ah", all cookies used are prefixed with "_ah", and all
> classes and
>    functions are in the namespace "AH".
>  -->
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to