debugging

Why wont DirectSound Buffer play under debug conditions?

My wave won't play under debug. If I hit CTRL+F5 I get a nice WAV and the Console writes out the file cursor position (buf.PlayPosition) and then the method exits when the sound is over. Under debug (when I just hit F5) there is no audio output, however the file cursor position is still increased in the console window and the method exit...

File not found system error when entering into a function

While running some code I am getting a unhanded exception for file not found with no file location or file name specified. If I break I can see the function that the error is being reported from. I can reach break points before where that function is called but can't enter into the function with out the exception being thrown. The functi...

Perhaps a resource not released? What could cause this?

I'm working on a project and I came to a point where the following stack trace popped up: #0 0x0017c30c in _IO_flush_all_lockp () from /lib/libc.so.6 #1 0x0017d030 in _IO_cleanup () from /lib/libc.so.6 #2 0x0013e042 in exit () from /lib/libc.so.6 #3 0x00126bbe in __libc_start_main () from /lib/libc.so.6 #4 0x08049d11 in _start () ...

Debugging iPhone App from Command Line

I can do it from XCode, but I want to be able to launch an iPhone App (on the device) from the command line. Is it possible? Why? Because I want to capture some of the output for semi-automated testing. I'm guessing I need to use a debug build for NSLog output, but I'd also be interested to know about other methods for getting NSLog / s...

How can I write to the console from Excel vba code?

Is there any way to print a message to the console from an Excel vba macro? I have a small VB .NET console application that calls an excel macro, and I'd like the error messages from the macro code to print to the console. Debug.print doesn't help as it only prints to the immediate window. Any ideas? ...

iPhone Memory Error - when using Build & Debug, How to debug?

I'm a newbie and need some help with an iPhone App running on the Simulator. The app works fine running with Build & Run or Build & Run - breakpoints off, but blows when running with Build & Debug - Breakpoints on. Any help or thoughts would be greatly appreciated. Lon Specifics: No breakpoints set, never gets to any visible simulator ...

Getting Django Query Count While in manage.py shell

Is there a way to count my queries during a manage.py shell session? It would be helpful as a means to inspect some of the ORM behavior between queries. Additionally, it would be nice to pull the queries themselves, and I guess their execution times while I'm at it. i.e. >>>from myapp.models import User >>>User.objects.filter(...

Gnu Debugger & Linux Kernel

Hi all, I have compiled my own Kernel module and now I would like to be able to load it into the GNU Debugger GDB. I did this once, a year ago or so to have a look at the memory layout. It worked fine then, but of course I was too silly to write down the single steps I took to accomplish this... Can anyone enlighten me or point me to a...

debug in matlab

Hi, I like to debug in matlab using commands. some questions: (1) if choose a stack, is it possible to jump to a specific stack directly instead of moving one stack after another using dbup and dbdown? (2) after jumping to a middle stack, if I execute some commands, why it auto returns to the inner most stack? Can I stay at the middle...

How to detect when a UIView has changed size?

Hi, I have a UIViewController that is initialised with a correct frame, however somewhere in my code the frame gets mangled and I'm having difficulty finding out where. In situations like this it is usually handy to watch a variable in the debugger, however I have no way of accessing the controller->view->frame property in my variable ...

Debug java plugin

Is it possible to debug the applet loading process of the java plugin? I don't want to debug my applet application, I want to debug the applet loading process of the java plugin2. I mean the jnlp/jar download, cache lookup, certificate check, etc. I know the java plugin is not open source, but it would help anyway. I'm trying to solve ...

how to use a procedure in a SQL script?

If i run every block of this script in mysql-query-browser, it works. If i run it as mysql db < script.sql it gives me an error[1] that the documentation says it's for using reserved keywords. Already tried to use ; everywhere. -- table CREATE TABLE `days` ( `day` date NOT NULL, PRIMARY KEY (`day`) ) ENGINE=MyISAM DEFAULT CHARSE...

Debugging in SSMS exits without stepping in to code

Hello, I've recently put Windows 7 on my development PC, and I have Visual Studio 2008 Team System Development Edition, and SQL Server Management Studio 2008, and for some reason I can't seem to step in to any SQL code for debugging in SSMS. Before I formatted in favour of Windows 7, I was able to debug on the same two SQL servers I'm ...

performance of eclipse and zend debugger

Hi, I've recently moved my development from linux to windows 7 with the purchase of a new laptop. I have noticed that there are some problems, with my once working Lucene searches. My Searches are not returning results that they were when running on linux, and there are some issues with other code, which I am working through debugging....

How to detect where my app collapsed in linux

HI, i am recently in a project in linux written in C. This app has several processes and they share a block of shared memory...When the app run for about several hrs, a process collapsed without any footprints so it's very diffficult to know what the problem was or where i can start to review the codes.... well, it could be memory overfl...

Weird UITableViewCell Loading Exception

In my app, I use a custom NIB to load my UITableViewCells. The NIB's File's Owner is set so the class is my View Controller. I then Link the UITableViewCell to the IBOutlet I put in the header file. It was all working fine, until all of the sudden it stopped working, and gets this error: uncaught exception 'NSInvalidUnarchiveOperationEx...

How to launch winpdb from a Python script?

When I have to deal with bugs in Python code, I often insert breakpoints so during execution I'm being dropped into the debuger when a breakpoint is reached. I've been mostly using pdb (command line) and pudb (ncurses interface). Is it possible to launch winpdb instead in such situation? What's the breakpoint code I shall include in my ...

What is the easiest way to validate page references? (css, javascript, etc..)

i've got firebug (my team does not have firefox), and the IE developer toolbar(IE7) but I can not seem to figure out how to easily validate if the referenced files in a page are loading (i see javascript errors, but that doesn't succinctly point me to the exact file in a heirarchy of jquery - jqueryUI - datepicker files). Additionally ...

Fixing "The breakpoint will not currently be hit. No symbols have been loaded for this document."

C# desktop application on express edition. Worked then didn't work 5 seconds later. I tried the following. Ensure debug configuration, debug flag, and full debug info are set on all assemblies. Delete all bin and obj folders and all DLLs related to the project from my entire machine. Recreate projects causing the problem from scratch....

GDB Debugging applications using clone()

Is there a GUI for GDB that will allow me to debug applications that create threads using clone() syscall? I tried Insight and KDBG, but for some reason when the new cloned thread is created, I can't see it in the thread list. The clone syscall is called through inline assembly. Is it not possible because the thread created shares PID wi...