debugging

Connecting multiple debuggers to a debugee (Java,JPDA)

Hi, Ive been trying unsuccessfully to connect two client debuggers to a Debuggee program in context of JPDA. Is this possible or are there workarounds to make it happen? I am using eclipse as the IDE (edit for typo). Think of a server program as a Hello World which Prints out: System.out.println("I have the String"); //1 System.out...

Viewing the output of Visual Studio's XSLT debugger

I'm using Visual Studio to debug a transform. If I am viewing the transform and select XML > Start XSLT Debugging, VS automatically opens the output file and as I step through the transform I can observe the output being written. In my case however, because the transform is performed by an application that first sets some parameters, I...

How to learn debugging ?

Hi ! I am upper level CS major, and I have no idea how to do debugging. No where in my courses they are teaching/showing debugging, and all my course works goes like this - here is the project, write a program in C that does XYZ, and by the way use GDB debugger !!! Currently, I am taking Assembly language course, and instructor requir...

"Debug As..." in Eclipse for Android

I'm an Android noob teaching myself debugging in the Eclipse (Galileo 3.52) environment. I have a little "hello world" app that runs fine in the emulator. So now I want to practice debugging by setting breakpoints, looking at variablaes, etc. But Run > Debug As... has nothing but a grayed-out "(nothing applicable)" entry. What doe...

I need help debugging a method in my iPhone app.

I am new to iPhone apps and objective c and I cannot figure out what is wrong with my method the general idea is that it goes to a plist which contain latitudes and longitudes, takes the data stored in the array that the user enters in a text field, and then outputs a pin at that location. Any suggestions would be greatly appreciated. I ...

How do I add a new virtual host to my apache?

<VirtualHost mydomain1.com:80> ServerAdmin webmaster@localhost ...stuff here </VirtualHost> <VirtualHost mydomain2.com:80> ServerAdmin webmaster@localhost ...stuff here </VirtualHost> This doesn't seem to work. Before, it was <VirtualHost *:80> and it worked. ...

intellij- pause a thread while debugging

Can I pause a thread while debugging on intellij? What I want to have is something similiar to other ID - right click on a thread and pause it. ...

ZendFramework - Finding out what queries are being run - Easier way

Hi There, Was wondering if there is an easier way to see the queries are being being run by my models? I know the alternate options are xDebug and Firebug but was wondering an easier method. Anyone? Thanks ...

Debugging all events in Visual Studio 2010 without setting break points

I am trying to debug a windows form application which has a large number of events: button presses, timers, etc.. Is there a way to catch every line of code being executed by the application without setting a break point? edit: The program was not written by me, so I am unfamiliar with the code. I wish to step through the entire progr...

Application Failed to Launch in Time, even with a background thread

I am checking network reachability in applicationDidFinishLaunching: [self performSelectorInBackground:@selector(performReachabilityCheck) withObject:nil]; Background thread -(void)performReachabilityCheck{ NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; internetReach = [[Reachability reachabilityForInternetC...

C++ specific debugging tricks with gdb

What are some of your favorite tricks to debug C++ programs with gdb ? Interested in all tricks but also how you call methods (which may be virtual) on objects from within gdb inspecting STL objects (pretty printing them) preventing gdb from going into STL code with continue dealing with inlining, threads, tcmalloc (or custom allocat...

Problem to debug stored procedure

There is a SP which gets over 96 items as parameters. I want to debug this sp, how can I do it? It says: Transaction count after EXECUTE indicates a mismatching number of BEGIN and COMMIT statements. Previous count = 1, current count = 0." System.Data.Common.DbException {System.Data.SqlClient.SqlException} Please tell me a way t...

Understanding UMDH Warnings

I am new to using UMDH, and I am having some trouble understanding how to proceed with some of the errors it is outputting. I follow the typical usage (from the MS site): gflags -i OCES.exe +ust In another terminal window: OCES.exe And then back in the original terminal window: umdh -p:5712 -f:out1.txt But I am getting the follo...

Google Chrome won't let me place breakpoints

I've been using Google Chrome to debug my javascript, but then all of a sudden I can no longer place breakpoints. I click on the line number, where I previously clicked to add a breakpoint, but no breakpoint will be added. Sometimes if I click very fast, like a madman, I can see it trying to add breakpoints, but it won't stick. The only...

Use C# attribute to track function call, variables, and return value?

In Python, I can use decorators to trace the function call, its variables and return values. It is very easy to use. I just wonder can C# do the same thing? I find out there is a sample code of CallTracing Attribute online. However, it didn't show the result I expected. Does C# attributes have similar concepts as python's decorator? T...

Why is my debug executable in Visual Studio (9) starting up so slowly?

I am experiencing a very weird issue when using Visual Studio (9) for debugging my applications. Whenever I hit F5 to start the debugging, the application takes a long time until it even gets to the first line of my main function... I started up Process Explorer and during this time you can see how slowly it finds and loads the required...

Why do I get missing DLL errors debugging my Fortran code using GDB on Windows 7 64-bit (using Eclipse/Photran/Cygwin)?

My setup is as follows: OS: Windows 7 Home Premium 64-bit Eclipse: Helios 3.6.1 64-bit with CDT and Photran Java SE Runtime Environment: 1.6.0_21 Java Hotspot: 64-bit Server VM (build 17.0-b17, mixed mode) Cygwin 1.7.2 (32-bit) My initial test Fortran application simply prints 'Hello World!' and exits. The code builds and runs fin...

TTURLRequest failing on adhoc release, but succeeding otherwise

I'm seeing the following crash on two different devices (an iphone 3g and an ipod touch) when in adhoc mode, although it seems to be OK when building in debug mode for those devices. It also seems to be OK on iPhone 4's. Here's the stack trace that I'm getting in ad hoc mode: https://gist.github.com/af5ea32f2dacc795387e From what I c...

Sometimes the contents load and sometimes they don't

Hi Everyone, I have the script below and on the website http://cacrochester.com, sometimes the contents of the right sidebar load and sometimes they don't. I think it's if it's your first few times on a page, it will say no events scheduled. I'm completely stumped on why this is happening. The data in the database is not changing. Le...

Crashes when in simulator when button pressed

I have 3 views and the first view has a motion background (sequence of pictures), music, and two buttons. When I push either button it crashes. I have a feeling its a memory problem but I'm not sure how to fix this. I'm rather new to Xcode. ...