debugging

How to debug DirectX 11 Compute Shaders?

I've started using DirectX 11 Compute Shader technology for GP-GPU programming. I had written quite a complex program on HLSL and when I wanted to debug it, I realized that PIX utility from DX SDK August 2009 does not support Compute Shaders... I know that Nvidia is going to release Nexus for Visual Studio, which will support Direct Comp...

Why does my "if" statement appear not to run?

Hi everybody. I'm defecting from C# to Delphi 2009, I'm liking it so far very much. I wrote a binary search procedure, which works fine. I added a simple if-else statement at the end of my proc and it just doesn't fire! I can't see anything wrong with it and am embarrassed to have to say I am stuck. Please help! procedure BinSearch; v...

Finding out the filename that called my function in PHP

How do I find out the filename of the script that called my function? For example, function sthing() { echo __FILE__; // echoes myself echo __CALLER_FILE__; // echoes the file that called me } ...

XCode 3.2.1 doesn't show contents of NSMutableArray when debugging?

I am struggling to understand why the following code doesn't show an array with any contents when I debug in XCode and yet the NSLog clearly displays contents, as does GDB using po? - (IBAction)action: (id)sender { NSMutableArray *btnTitles = [NSMutableArray arrayWithObject: @"Open in Safari"]; NSLog(@"%@",[btnTitles description]); // ...

Lines that debugger visited

Do you know some plug-in to visual studio , that can remember lines and the order in which they where visited in the debug mode ? And I will be able to compare two different runs of the debugger in it ? Something like the stack in the debugger, but remembers all the data in line file and the order and can be viewed later and compared...

How to generate Debug symbols with Makefile for C? [Linux]

Hi I'm trying to use GDB and KDEvelop to debug a console app under Knoppix VM. KDevelop and GDB don't break at my breakpoints. I suspect it's because they don't have debug symbols. If I'm correct how do I need to change my Makefile to create those. Maybe the problem is somewhere else? Regards, Ariel ...

Help with remote debugging under linux

Hey Guys At present we are developing a graphic app on a linux box using opengl. We have had a bit of trouble getting a decent debugger working. At present we use GDB via a ssh connection, but that is a tad painful. Next we have tried running DDD on the target platform, but we run out of space on screen. Next we have tried running a...

Telling Firebug to Break as Soon as any Javascript is Executed

I've inherited a pile of code that's doing unexpected things when I click on some <button> elements. The page has a lot of Javascript, and it's unclear what, if any, events have been setup on the button or its parent elements. I'm trying to find where execution starts so I can debug what's going on. Is there a way to have Firebug (o...

Delphi "Internal Error EVA 1528"

Can anyone please help me out in rectifying the error: BORdbg70.exe BORdbg70.dll "Internal Error EVA 1528". What is the cause of this error? how can i slove this problem. See here how the remote debugging session was setup ...

Debug Oracle stored procedure using Toad

Hi guys, I have the following situation: I have a java code launching a stored procedure. What I want is to launch the java code, and when arriving into the stored procedure, to start debuggin it using Toad. Is this possible? Thanks alot. Best regards, Corneliu ...

DDD debugger: save A command history between sessions

I noticed that my command history remains only during the current session, and once I re-start ddd, say with the same process, it starts with a clean slate. Is there way I can force the latest history to persist/reload. I couldn't find any relevant options in Edit-> Preference/GDB sessions. I am using GNU DDD 3.3.9 (i386-redhat-linux...

Solving very intermittent exception in .net app

I have an asp.net MVC app in production that very seldom but very consistently is throwing the same exception and I don't know why. I cannot, no matter what I do, reproduce the exception in neither the production nor development environments. I am logging all unhandled exceptions. I have the date/time, controller, action, exception mess...

Why does Request["host"] == "dev.testhost.com:1234" whereas Request.Url.Host == "localhost"

Hi all, I seem to have found a discrepancy when testing ASP.NET applications locally on the built-in web server with Visual Studio 2008 (Cassini). I've set up a host on my local machine associating dev.testhost.com with 127.0.0.1, since I have an application that needs to change its appearance depending on the host header used to call i...

WinDbg -- debugging mixed x64 managed/unmanaged code

I'm using WinDbg (Native x64 -- NOT Itanium) to debug an x64 (unmanaged) application that loads both managed an unmanaged DLLs. I'm trying to set a breakpoint in one of the unmanaged DLLs. When the breakpoint is hit and I step through, the instructions displayed are totally different from what they should be. I verified with two differe...

How to debug Core Data crash on fetch request

Hi guys, the second time I execute [[MOC executeFetchRequest:request error:&error] lastObject]; after having said NSFetchRequest *request = [[NSFetchRequest alloc] init]; [request setEntity:[NSEntityDescription entityForName:@"Login" inManagedObjectContext:MOC]]; NSError *error = nil; it crashes with a EXC_BAD_ACCESS. Included is...

How to trigger django DEBUG on a production server non intrusively

I'm looking for a safe method of triggering DEBUG for INTERNAL_IPS requests on a django production server without requiring the alteration of a settings.py file. Mainly to get the toolbar going for some designers to check issues on live data/media, but without relying on them to reset the settings once they have finished. Similar to thi...

Django Development Server Not Serving Errors from Ajax Requests

Hello everyone, I've been trying to get some Ajax stuff to work in my Django application, but it has been difficult because for some reason syntax and type errors are not causing a server crash and are failing silently. How could this be? JavaScript (jQuery): add_foo = function() { var numfoos = $("div#foos_container > div.foo").l...

A procedure imported by {myassembly} could not be loaded

Hello, when running a prorgam, it seems that I am missing a library, when I launch the output of my project I get an exception at startup. A first chance exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll An unhandled exception of type 'System.IO.FileLoadException' occurred in mscorlib.dll Additional information: ...

How can I see the SQL statements which go to the database when using PDO?

How can I see the SQL statements which go to the database when using PDO? ...

Visual Studio WCF Application now asking to manually attach to process

I have a console app that is calling a WCF app hosted in IIS. Up until now everything has been fine and I am able to debug the app - step through it without any problems... Until I added my dev pc to a domain.... now every time I get step into the code hosted in IIS, a popup comes up asking if I would like to attach to this process.....