glimpse

How can I get Glimpse to work with EF6?

不想你离开。 提交于 2019-12-22 04:16:06
问题 EDIT : stack trace added at bottom. I have an ASP.NET MVC 5 project that uses a SQL Server database via Entity Framework 6. I added Glimpse (and Glimpse.MVC5) to the project, and that works fine. However, when I add Glimpse.EF6, my application throws an exception as soon as it attempts to access the database. The exception is: System.NotSupportedException Unable to determine the provider name for provider factory of type 'System.Data.SqlClient.SqlClientFactory'. Make sure that the ADO.NET

How glimpse persists debugging information?

♀尐吖头ヾ 提交于 2019-12-21 22:10:14
问题 How does Glimpse persist collected data? Is it all saved in memory? Is there a way to persist the data in a database? I ask this because if I have a website installed on multiple machines (load balancing) can I use glimpse for debugging, or is the data collected from one server not accessible from other servers? 回答1: IPersistenceStore is the interface to implement. Glimpse ships out of the box with an in memory store called ApplicationPersistenceStore, but your implementation could write the

Remove GlimpseDbConnection when Glimpse is disabled

寵の児 提交于 2019-12-13 19:23:35
问题 I'm using Glimpse.ADO to profile Linq to SQL commands using the following code: var connection = new SqlConnection(connectionString); var conn = new GlimpseDbConnection(connection); context = new ApplicationDatabaseDataContext(conn, mappingSource); The above code works fine and I can see SQL queries in the HUD. I would like to disable Glimpse in production so I'm using the following code in the web.config <glimpse defaultRuntimePolicy="Off"> However, I'd like to remove the GlimpseDbConnection

Glimpse and RedirectToAction

六眼飞鱼酱① 提交于 2019-12-12 18:26:07
问题 I am trying to follow Scott Hanselman's example on using glimpse to trace an ASP.NET MVC 3 application. Public Function SomeAction(id As Integer) As ActionResult Dim traceid = Guid.NewGuid.ToString Trace.TraceInformation(traceid & " " & DateTime.Now.ToString("HH:mm:ss:fffffff") & " action start") ... Trace.TraceInformation(traceid & " " & DateTime.Now.ToString("HH:mm:ss:fffffff") & " some other traces") Return RedirectToAction("AnotherAction", New With {.id = id}) End Function As you can see,

What does “Set Glimpse Session Name” do?

非 Y 不嫁゛ 提交于 2019-12-12 15:23:37
问题 For such a big honkin' button on the main Glimpse control panel, it's surprising that "Set Glimpse Session Name" brings up only 7 results on Google (13 if you drop "Set"). Whatever it is, it sounds important. So what is a session name in Glimpse, and what does setting one do? 回答1: The Session name can help you to make a distinction between different clients. By default the browser name is used, but if you want to make distinction between different sessions in the same browser, then setting

Glimpse Not working at all

做~自己de王妃 提交于 2019-12-12 10:55:19
问题 I installed Glimpse for MVC5 via Install-Package Glimpse.MVC5 I turned on Glimpse on the Glimpse config page: /Glimpse.axd When try to now hit my site, nothing happens. If I turn off Glimpse the site works as expected. There are no error message or anything http related in Chrome network tools, only a request of: data:text/html,chromewebdata with a response of "Failed to load response data" This is what Glimpse put in my web.config when I installed it. Not sure how to troubleshoot this.

Glimpse making everything 50x slower

我怕爱的太早我们不能终老 提交于 2019-12-12 07:38:42
问题 Ive been using glimpse to try to address some slow page issues, only to discover that glimpse is the cause. The page requests are 30000+ seconds, without glimpse they are instant. So I've been chasing ghosts. How can I use glimpse to see how long everything takes when it is causing such speed differences. Do I have something configured wrong or is it always this slow 回答1: Update your glimpse web.config element to have the following entries: <glimpse defaultRuntimePolicy="On" endpointBaseUri="

How do I “enabled in a read only capacity” in Glimpse?

六月ゝ 毕业季﹏ 提交于 2019-12-12 06:17:34
问题 I want to be able to view user sessions for debugging purposes. I am attempting to follow the setup instructions for the History tab located here. I am not clear how I enable glimpse in a read only capacity, and my google-fu is failing me. Can someone point me in the right direction? From the documentation: Next, you will want to flag their "session" as having Glimpse enabled in a read only capacity (meaning Glimpse will collect the information but they can't view it). Typically this is done

Retrieve the Session in the GlimpseSecurityPolicy RuntimeEvent.ExecuteResource

筅森魡賤 提交于 2019-12-12 06:08:21
问题 Using glimpse I'm able to access the session information accept when using the RuntimeEvent.ExecuteResource . Without this the axd file is exposed and I'd rather have it disabled unless specific users are logged in. The session will be null in both examples below. Also I've tried having the class implement IRequiresSessionState but that didn't help either. namespace Glimpse { public class GlimpseSecurityPolicy:IRuntimePolicy { public RuntimePolicy Execute(IRuntimePolicyContext policyContext)

Getting the request body of search response with 2.X NEST client

纵然是瞬间 提交于 2019-12-12 04:24:14
问题 I'm using the new 2.X NEST client. That part is important, because there were a great many breaking changes which will effect potential answers here. Previously, I used the Glimpse Elasticsearch plugin to see the underlying queries being generated by NEST. However, it would appear that that plugin is no longer compatible with 2.X NEST. As a result, I'm trying to find a workaround to see the JSON query. The problem here is that the old way of accessing response.RequestInformation to get at the