<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: debugger</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/debugger.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2021-05-24T18:23:48+00:00</updated><author><name>Simon Willison</name></author><entry><title>How to look at the stack with gdb</title><link href="https://simonwillison.net/2021/May/24/how-to-look-at-the-stack-with-gdb/#atom-tag" rel="alternate"/><published>2021-05-24T18:23:48+00:00</published><updated>2021-05-24T18:23:48+00:00</updated><id>https://simonwillison.net/2021/May/24/how-to-look-at-the-stack-with-gdb/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://jvns.ca/blog/2021/05/17/how-to-look-at-the-stack-in-gdb/"&gt;How to look at the stack with gdb&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Useful short tutorial on gdb from first principles.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/c"&gt;c&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/debugger"&gt;debugger&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/julia-evans"&gt;julia-evans&lt;/a&gt;&lt;/p&gt;



</summary><category term="c"/><category term="debugger"/><category term="julia-evans"/></entry><entry><title>How I cut GTA Online loading times by 70%</title><link href="https://simonwillison.net/2021/Mar/1/gta-loading-times/#atom-tag" rel="alternate"/><published>2021-03-01T19:12:03+00:00</published><updated>2021-03-01T19:12:03+00:00</updated><id>https://simonwillison.net/2021/Mar/1/gta-loading-times/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://nee.lv/2021/02/28/How-I-cut-GTA-Online-loading-times-by-70/"&gt;How I cut GTA Online loading times by 70%&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Incredible debugging war story:  t0st was fed up of waiting six minutes (!) for GTA Online to load on their PC, so they used a host of devious debugging tricks to try and figure out what was going on. It turned out the game was loading a 10MB JSON file detailing all of the available in-game purchases, but inefficient JSON parsing meant it was pegging an entire CPU for 4 minutes mainly running the strlen() C function. Despite not having access to source code or debugging symbols t0st figured out the problem and managed to inject a custom DLL that hooked some internal functions and dropped load times down from 6m down to to 1m50s!

    &lt;p&gt;&lt;small&gt;&lt;/small&gt;Via &lt;a href="https://news.ycombinator.com/item?id=26296339"&gt;Hacker News&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/debugger"&gt;debugger&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/hacking"&gt;hacking&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/profiling"&gt;profiling&lt;/a&gt;&lt;/p&gt;



</summary><category term="debugger"/><category term="hacking"/><category term="profiling"/></entry><entry><title>Debugging in Python</title><link href="https://simonwillison.net/2009/Nov/18/debugging/#atom-tag" rel="alternate"/><published>2009-11-18T12:34:29+00:00</published><updated>2009-11-18T12:34:29+00:00</updated><id>https://simonwillison.net/2009/Nov/18/debugging/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/"&gt;Debugging in Python&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
The missing manual for Python’s powerful pdb debugger.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/debugger"&gt;debugger&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/debugging"&gt;debugging&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/pdb"&gt;pdb&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;&lt;/p&gt;



</summary><category term="debugger"/><category term="debugging"/><category term="pdb"/><category term="python"/></entry><entry><title>pudb</title><link href="https://simonwillison.net/2009/Nov/1/pudb/#atom-tag" rel="alternate"/><published>2009-11-01T12:09:20+00:00</published><updated>2009-11-01T12:09:20+00:00</updated><id>https://simonwillison.net/2009/Nov/1/pudb/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://pypi.python.org/pypi/pudb/"&gt;pudb&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
A full-screen, curses console based visual debugger for Python, built using the urwid console UI library.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/console"&gt;console&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/debugger"&gt;debugger&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/pdb"&gt;pdb&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/pudb"&gt;pudb&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/ui"&gt;ui&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/urwid"&gt;urwid&lt;/a&gt;&lt;/p&gt;



</summary><category term="console"/><category term="debugger"/><category term="pdb"/><category term="pudb"/><category term="python"/><category term="ui"/><category term="urwid"/></entry><entry><title>DebugBar</title><link href="https://simonwillison.net/2007/Nov/25/debugbar/#atom-tag" rel="alternate"/><published>2007-11-25T10:32:14+00:00</published><updated>2007-11-25T10:32:14+00:00</updated><id>https://simonwillison.net/2007/Nov/25/debugbar/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.debugbar.com/"&gt;DebugBar&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Suggested at BarCamp London 3 as a useful tool for developing with IE; apparently includes a great JavaScript debugger.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/barcamplondon3"&gt;barcamplondon3&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/debugbar"&gt;debugbar&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/debugger"&gt;debugger&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/debugging"&gt;debugging&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/internet-explorer"&gt;internet-explorer&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/javascript"&gt;javascript&lt;/a&gt;&lt;/p&gt;



</summary><category term="barcamplondon3"/><category term="debugbar"/><category term="debugger"/><category term="debugging"/><category term="internet-explorer"/><category term="javascript"/></entry></feed>