debugging

Delayed_Jobs will not refresh

I had previously a mailer set up to send me emails to all user accounts. But now I'm trying to debug it. So I gutted it out completely and it still sends emails to me. I have absolutely no reasoning or understanding as to why. Insanity! :D controller def org_blast_send Delayed::Job.enqueue OrgBlast.new(params[:subject], params[:edi...

Break on debug message in GDB

Is it possible to have GDB break each time it receives a debug log message? ...

How can I understand this crash log?

Looks like its related to NSURLConnection, but not sure how I can diagnose? Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x1ab98c00 Crashed Thread: 0 Thread 0 Crashed: 0 libobjc.A.dylib 0x000027da objc_msgSend + 18 1 CFNetwork 0x000...

Application Failed to Launch in Time

How can I diagnose this error? Application Specific Information: MyApp failed to launch in time Elapsed total CPU time (seconds): 4913.443 (user 3868.270, system 1045.173), 56% CPU Elapsed application CPU time (seconds): 0.010, 0% CPU Backtrace not available Unknown thread crashed with unknown flavor: 5, state_co...

debug: jquery fails silently, how to prevent it

how to force jquery to exit WITH error instead of failing silently (in firebug console i see nothing and i don't know, what was wrong) ...

Editor for firebug or 'how to embed a custom editor' in a firefox tab?

Firebug is great for javascript development, but doesn't allow to edit the code (the 'edit html' in the firebug is not usable, doesn't save the file and even if it did, it is just an plain text editor without any coloring). I usually have my editor opened next to Firefox, but the constant switching feels aarrgh! To have the editor insid...

WordPress: plugins don't load (only) on homepage after update

Hi there, After several plugins got updated yesterday I saw in the source code that actually no plugin is loaded(1) on the frontpage anymore. On all the other pages everything works just fine. The most obvious one is the menubar (wp-menubar-plugin), and for now I made an exception for the homepage(2) loading a hard coded copy of the me...

Getting more detail from stack traces

Is there a convenient way to get a more detailed stack trace on a Python exception? I'm hoping to find a wrapper utility/module or some other way to get a bit more info from the stack trace without having to actually modify the Python script that generates it. I'd like to be able to use this when running unit tests, or doctests, or whe...

How do I debug a PHP WSOD?

Very occasionally I get a mystifying white-screen-of-death PHP error - nothing is displayed or logged, even with the following settings: ini_set("error_reporting",E_ALL); ini_set("display_errors",true); ini_set("log_errors",true); ini_set("display_startup_errors",true); ini_set("html_errors",false); ini_set("error_log","/var/log/php_er...

Using Instruments, how can I tell what is causing my iPhone app to freeze?

My iPhone app tends to 'freeze up' the UI when comes into the active state from the background. How can I use Instruments to find out the cause of the freeze? What instrument should I use? What are the key columns I need to look at in the Instruments panel? ...

how to debug a long script in management studio?

I have a very long T-sql script, it is a single batch, something like DECLARE variables select into temptable... cursor... insert... update.. as I run the script I have (1 row(s) affected) (5 row(s) affected) [...] ERROR (2 row(s) affected) etc... I would like to run step by step the script to identify which is the command...

How to turn off showing assembly codes when debug?

I accidentially turn on this mode and want to return to previous setting. How can I do this? ...

On Windows(7) my application keeps restarting on segfault

Hello, I would like to know how to prevent my application from being restarted when it crashes (an intentionnal segfault in an assertion) Is it related to debugging environment? (I have VS 2008 installed) is there a registry key or something to NOT reload apps after a crash? Thanks in advance EDIT: While searching for an answer I ca...

debugging android app with "jdb -attach" (or jswat)

Hello, I'm having troubles with using a stand-alone java debugger with android apps on emulator. Apparently, any remote-capable java debugger such as jdb (or jswat) could be leveraged, by following the steps below (as I understand after reading here and there): 1) turn on the emulator, install your app on the emulator (adb install) 2...

How to debug with obfuscated (with ProGuard) applications on Android?

When I got something like this ERROR/AndroidRuntime(18677): Caused by: java.lang.NullPointerException ERROR/AndroidRuntime(18677): at com.companyname.a.a.a(Unknown Source) How can I know where the problem is and debug this issue? I only got the mapping output from ProGuard and don't know the line number. Thanks. ...

How to attach debug IIS native module with VS 2010

I am getting difficulty debugging my custom IIS module written in C++, using VS 2010. The problem is that IIS worker process (w3wp.exe) starts too quickly and there is no way to catch it at the beginning in VS "attach to process" dialog. Is there a good skill to do this? Thanks. ...

how to systematically solve binding issues.

I have been using data binding for several years with win forms, but now with more rich and full featured data binding in wpf I can easily do stuff that would have taken a lot of code in winforms. Lurking beneath the surface is an unsettling feeling that all of this is a little to automagic and that if I break something I may not be abl...

What is Unloaded Type in Windbg ?

I am trying to debug a memory dump and I am looking at one type as being labelled as 2c172a8c 1313427 1040234184 <Unloaded Type> Does anyone know what this means exactly? TIA Andrew ...

How do breakpoints work in C++ code?

How do breakpoints work in C++ code? Are they special instructions inserted in between some assembler instructions when the code is compiled? Or is there something else in place? Also, how are stepping-through-the-code implemented? The same way as breakpoints...? ...

Debugging symbols in Erlang

I'm working my way through some simple programs for learning Erlang, and whenever I try to use the debugger I get "Invalid beam file or no abstract code: test_module" and nothing interesting happens. It looks to me like I'm compiling my modules without debugging symbols, but I can't seem to find how to fix it. Here's what I do: >c(test...