Starting to learn Windbg [closed]

There’s a few excellent blogs out there that help to gain windbg proficiency on an everyday basis: Dr. Debugalov Nynaeve Advanced Windows Debugging Debugging Toolbox Debugging Tricks Oleg Starodumov List of posts from/to Ivan Brugiolo Windbg by Volker von Einem I, personally, just started using windbg for all my debugging tasks and soon enough there … Read more

How to debug Greasemonkey script with the Firebug extension?

Updatier: The Mene+Shuman fix now is busted with Firefox 30 and Firebug 2. Firefox 31 may provide workarounds (will investigate). In the meantime, use the “General workaround strategies” listed below. Update: This answer is now obsolete. If you open about:config and set extensions.firebug.filterSystemURLs to false then you can use Firebug to debug the Greasemonkey script … Read more

How to debug Haskell code?

The GHCi option -fbreak-on-exception can be useful. Here’s an example debugging session. First we load our file into GHCi. $ ghci Broken.hs GHCi, version 7.0.2: http://www.haskell.org/ghc/ 😕 for help Loading package ghc-prim … linking … done. Loading package integer-gmp … linking … done. Loading package base … linking … done. Loading package ffi-1.0 … linking … Read more

JSP debugging in IntelliJ IDEA

For JSP debugging in Intellij there are some configurations that must be in order. The fact that Intellij always allows you to add a breakpoint on a JSP line does not necessarily imply that you’ve configured JSP debugging. In the following I refer to Intellij 8 configuration, w.r.t. previous versions you will need to do … Read more

How to log all executed elasticsearch queries

In versions of ElasticSearch prior to 5, you can accomplish this by changing the ElasticSearch.yml configuration file. At the very bottom of this file, you can adjust the logging time to record all: index.search.slowlog.threshold.query.warn: 10s index.search.slowlog.threshold.query.info: 5s index.search.slowlog.threshold.query.debug: 2s index.search.slowlog.threshold.query.trace: 500ms index.search.slowlog.threshold.fetch.warn: 1s index.search.slowlog.threshold.fetch.info: 800ms index.search.slowlog.threshold.fetch.debug: 500ms index.search.slowlog.threshold.fetch.trace: 200ms index.indexing.slowlog.threshold.index.warn: 10s index.indexing.slowlog.threshold.index.info: 5s index.indexing.slowlog.threshold.index.debug: 2s … Read more