{"id":10062,"date":"2014-05-24T14:38:22","date_gmt":"2014-05-24T17:38:22","guid":{"rendered":"http:\/\/gianfratti.com\/?p=10062"},"modified":"2018-05-24T14:47:55","modified_gmt":"2018-05-24T17:47:55","slug":"habilitar-o-trace-em-aplicacoes-as-net","status":"publish","type":"post","link":"https:\/\/gianfratti.com\/index.php\/habilitar-o-trace-em-aplicacoes-as-net\/","title":{"rendered":"Habilitar o Trace em Aplica\u00e7\u00f5es As.Net"},"content":{"rendered":"<p>Ol\u00e1, recentemente trabalhei em um projeto antigo de Asp.Net usando WebForms e tive que fazer alguns Troubleshooting em busca de erros e entendimento do sistemas, foi ai que eu lembrei que \u00e9 possivel habilitar o trace do sistemas na pr\u00f3pria com output na p\u00e1gina e ir lendo todo o ciclo do .Net.<\/p>\n<p>Bom, vamos l\u00e1, \u00e9 bem simples.<\/p>\n<p>Altere o seu Web.Config inserindo as propriedades abaixo, onde enable liga o trace e pageOutput vai despejar o trace na mesmo tela, abaixo da ultima instru\u00e7\u00e3o do seu Designer.<\/p>\n<p>&lt;configuration&gt;<br \/>\n&lt;system.web&gt;<br \/>\n&lt;trace enabled=&#8221;true&#8221; pageOutput=&#8221;true&#8221; \/&gt;<br \/>\n&lt;\/system.web&gt;<br \/>\n&lt;\/configuration&gt;<\/p>\n<p>Caso queria acessar o trace por uma URL e desligar o PageOutput vc pode fazer isso acessando a URL abaixo.<\/p>\n<p>http:\/\/localhost:&lt;PORTNUMBER&gt;\/trace.axd<\/p>\n<p>OBS: Aten\u00e7\u00e3o, nunca deixo o trace ligado em ambientes produtivos, ele captura todas as informa\u00e7\u00f5es trafegadas.<\/p>\n<p>Abs<br \/>\nFabrizio<\/p>\n<p>&nbsp;<\/p>\n<div id=\"selenium-highlight\"><\/div>\n<div id=\"selenium-highlight\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Ol\u00e1, recentemente trabalhei em um projeto antigo de Asp.Net usando WebForms e tive que fazer alguns Troubleshooting em busca de erros e entendimento do sistemas, foi ai que eu lembrei que \u00e9 possivel habilitar o trace do sistemas na pr\u00f3pria com output na p\u00e1gina e ir lendo todo o ciclo do .Net. Bom, vamos l\u00e1, <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"https:\/\/gianfratti.com\/index.php\/habilitar-o-trace-em-aplicacoes-as-net\/\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[201,2],"tags":[],"class_list":["post-10062","post","type-post","status-publish","format-standard","hentry","category-net","category-net-framework"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts\/10062","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/comments?post=10062"}],"version-history":[{"count":2,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts\/10062\/revisions"}],"predecessor-version":[{"id":10064,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts\/10062\/revisions\/10064"}],"wp:attachment":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/media?parent=10062"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/categories?post=10062"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/tags?post=10062"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}