-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
Diagnostics #213
Diagnostics #213
Conversation
… implemented yet in the source.
Added placeholder for the article and issue dotnet#212
Updated article content accordingly.
@ardalis, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR. |
:linenos: | ||
:emphasize-lines: 2,21 | ||
|
||
The above code, which is built from the ASP.NET 5 Empty template, includes a simple mechanism for creating an exception on line 36. If a request includes a non-empty querystring parameter for the variable ``throw`` (e.g. a path of ``/?throw=true``), an exception will be thrown. Line 21 makes the call to ``UseErrorPage()`` with `ErrorPageOptions <https://github.com/aspnet/Diagnostics/blob/dev/src/Microsoft.AspNet.Diagnostics/ErrorPageOptions.cs>`_ set to ``ShowAll``. Using ``ErrorPageOption`` you can toggle the visibility of the following features of the error page: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ErrorPageOption -> ErrorPageOptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There are still AppInsights images in this PR that are not referenced and should be removed:
|
The images are fixed in the AppInsights PR, just submitted. |
I'd rather not couple this PR with the AppInsights PR. Can we please remove the AppInsights images from this PR and add them in the correct PR? |
Images removed. |
"dependencies": { | ||
"Microsoft.AspNet.Server.IIS": "1.0.0-beta4", | ||
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta4", | ||
"Microsoft.AspNet.Diagnostics": "1.0.0-beta4" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
.. image:: diagnostics/_static/errorpage-headers.png | ||
|
||
Finally, any environment variables defined for the server environment would be displayed on the Environment tab. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove any reference to the environment tab, it's a leftover from Katana referring to the OWIN environment, not environment variables. aspnet/Diagnostics#135
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@danroth27 Is UseErrorHandler going to get it's own doc page? |
Ok, then we should take it out of this sample, or at least put in a link to the other docs from that line in the sample. |
Fixed a few things in the article per @Tratcher feedback
@@ -0,0 +1,1146 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@danroth27 do we want to check in lock files for samples? We don't do that elsewhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, we don't do it anywhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, that should be in my .gitignore.
Added links to welcome page and exception from home page
Should be good to go now, @Tratcher thanks! |
}, | ||
|
||
"frameworks": { | ||
"dnx451": { }/*, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/*...*/
comments are no longer supported, remove them. The sample should work on dnxcore50.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
…cified in project.json. Updated gitignore - added project.lock.json
Conflicts: docs/fundamentals/diagnostics.rst docs/fundamentals/index.rst
Fixes issue #62