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...
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();
...
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
...
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...
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...
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, ...
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...
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...
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...
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.
...
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 ...
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...
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 ...
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. ...
#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 =...
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 ...
Hi,
Is there a way in MySQL to print debugging info - something like ...
'print' in SQLServer
DBMS_OUTPUT.PUT_LINE in Oracle
Thanks.
...
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 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?
...
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...