debugging

What are the most useful Runtime tools for exercising and debugging code in the wild?

Hi, After a product is released, we have the need to execute or debug code that has been deployed to the live environment. I tend to use PowerShell to create objects and invoke public functions rather than writing small test applications in C# to perform integration testing on the deployment platform. For debugging, when the source cod...

APIDemos 8 Debug, setting a debug breakpoint at the first line never runs through code in the class

I set a toggle breakpoint at line 36 of the main class, of APIDemos 8, the debug begins at the OnCreate but never processes another line in the class. Why is that? Here's the code starting a line 36. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent intent = getIntent(); ...

any way to step through javascript touch eventhandlers on the iPad?

Is there any way to step through javascript touch eventhandlers running on iPad Safari? Specifically handlers for the touchstart, touchmove, touchend, and touchcancel events, not non-touch-related code which can be debugged in the (desktop) Safari user-agent simulator. Thanks ...

Trouble debugging asp.net web service

I'm having trouble figuring out why my web service is not working correctly when called from my asp.net application in production only. I am able to run my asp.net application locally, calling the web service (in production) and it completes correctly. I am able to modify the web.config to allow me to use the test form on the producti...

Grails debugging flash scope

I am using Authentication plugin for Grails. It needs a flash variable to be set to do redirection after successful login. I set the flash variable in various places in controller, in view just before authentication service does it's work, but somehow flash variables are being cleared on the way. I can't manage to find a way to spot th...

gdb unable to break on lstat call

Hello all, I'm debugging PHP 5.2.9 and everything works fine, but today during debugging I see that gdb don't stop when I set: (gdb) break lstat the breakpoint is in the list (gdb) info breakpoints Num Type Disp Enb Address What 1 breakpoint keep y 0x00002aaaaf810ea0 but, as written before, ...

Using Fiddler to debug the Windows Phone 7 emulator

I recently started using the updated beta tools for Windows Phone 7 and ran into an interesting problem. It seems that with Fiddler running, any Http requests run through the emulator start returning a null result and create a "not found" web exception. This is easy to reproduce with WebClient.DownloadStringAsync(). The old versions o...

In the Visual Studio debugger, you can view special 'variables' beginning with '$'. What are they?

For instance, write a function such as: void foo() { try { throw new Exception(@"whatever"); } catch { int n=1; //put a breakpoint here } } When the debugger is on the line in the catch block, typing $exception will show the exception information. Are there any more? What are these things? Th...

What is best way for interactive debug in python?

I want to utilize introspection capability of python for debugging/development, but cannot find appropriate tool for this. I need to enter into shell (IPython for example) at specific position or at specific event (like exception), with locals and globals of shell being set to the frame's ones. My own quick hack to illustrate it: impo...

Debugging a SQL Query

Does SQL Server 2008 have a built in debugger? I've got a stored procedure that returns an error if it is fed a string of alphabetic characters (as opposed to numeric) and I'd like to be able to determine what line it gets to before returning an error. ...

How to handle minor bugs that represent design flaws?

I'm working on a project where I have a few related bugs that are fairly minor in terms of loss of functionality. They are basically minor but annoying aesthetic problems, and based on loss of functionality should be fixed eventually, but not as a top priority. However, these bugs are caused by a fundamental, baked-in design flaw that ...

Segregating Debug and Release Code in C#

I'm writing an application wherein I have some debug code that I do not wish to delete, but I wish it to be modified or removed when compiling for release/publish. For example, I would like something like this in a debug build: MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); ...to become this in a...

How do I add breakpoints to a stored SQL Procedure for debugging?

I am trying to debug a SQL procedure, and am using the following query to do so. USE [database] GO DECLARE @return_value int EXEC @return_value = [dbo].[Populate] @ssId = 201 SELECT 'Return Value' = @return_value GO The problem is, the procedure I am testing, (Populate) doesn't seem to stop at any of the breakpoints I ...

How to debug WCF service with Silverlight

I have two solutions, one is the WCF service and the other one is the Silverlight. I would like to use the debugger on both solutions at the same time. The debugger for the WCF service automatically starts a ASP.NET development server. However, I have a hard time making my Silverlight client connecting to the ASP.NET development server. ...

Debugger is getting weird!?

#include<stdio.h> #include<string.h> int main(void) { int f; char duma[] = "asd char"; f = strlen(duma); } So when I run it in debugger and in "watch" table type strlen(data) its getting back a message like word like strlen() does not exist or something like that, the mean is that strlen does not exist, however in locals f =...

Android Debugging Tips

Often my programs simply crash. I can't see anything in the LogCat or otherwise useful information elsewhere to find out what's gone wrong. The only thing I see is some kind of exception. This is unacceptable and makes Android programming nearly impossible. I'm sure there must be some additional help to debugging, but after weeks of ...

MySQL - Print debugging info from stored procedure

Hi, Is there a way in MySQL to print debugging info - something like ... 'print' in SQLServer DBMS_OUTPUT.PUT_LINE in Oracle Thanks. ...

Debug "system_server" on Android PDK using GDB

Deal, I followed "http://pdk.android.com/online-pdk/guide/debugging_gdb.html" to debug android PDK for deep understanding of Surfaceflinger. When I type gdbclient system_server in the last step, I got This GDB was configured as "--host=i686-pc-linux-gnu --target=arm-elf-linux"... _dl_start () at bionic/linker/arch/arm/begin...

How can I get break on runtime exception(or error) in javascript (or ecmascript?)

How can I break on error? I have a code: throw new Error("Some error"); And I'm using most recent version of Web Inspector (Webkit) and Firebug(Mozilla). These tools catch and print the error, but does not break. May I don't know the how to. Please let me know how can I to do these? ...

Jetty 6 always generates debug logs?

I am using Jetty 6.1.24 to develop a Web Service and my code uses slf4j, as Jetty does, and logging is working fine. What I want to do though is get debug logging from my code but not from Jetty (it's too verbose), but I cannot stop it from logging debug info. There are system properties to set debug mode (-DDEBUG), but not to unset de...