debugging

Error when adding value to array

hey guys, when i run: with open('file00.txt') as f00: for line in f00: farr=array.append(float(line)) print "farr= ",farr i get: farr=array.append(float(line)) AttributeError: 'module' object has no attribute 'append' does anyone know why I get this? do I have to import something? am I doing it compl...

Listing variables in current and higher frames

Hi, I'm trying to debug a script with perl -d .... After I break where I want, I'd like to print out the current environment and the environment from higher frames. I see the stack via T. Now, if I try V, I get a list of everything, which is pretty much useless, since it includes stuff like SO_BROADCAST constants, etc. How can I filter ...

Memory Leak related with replaceChild

Here is source code of my function: bool FieldModel::updateNode(QDomNode &node,const QString &parent){ QDomElement rootOfTag; rootOfTag=fieldState.firstChild().firstChildElement(parent); qDebug()<<"Before"<<fieldState.toString(); QDomNodeList sameTags=rootOfTag.elementsByTagName(node.firstChild().toElement().tagName()); for...

Analyzing core file of shared object

Tests : [1] creating divide of 0 in executable hat was compiled with optimization (O2) and debugging symbols , thus a core was generated. [2] creating divide of 0 in shared object hat was compiled with optimization (O2) and debugging symbols , thus a core was generated. Results: [First] analysing the core generated by [1] was succeed...

Symbols files and debugging

Assume i have a custom service written in VC++ 6.0 and i have shipped it as part of a particular release. Unfortunately i did not take the pdb while building the binary. At a later point of time my customer reported a crash and i had to get the pdb to identify the crash cause. Will a pdb that i take now be enough to identify the point o...

How do I enable the Autos windows in Visual Studio 2010

It is supposed to be in Debug -> Windows when debugging but it's not. It's not even in the command list under Tools -> Customize -> Commands -> Menu Bar: Debug - Windows -> Commands yet it is mentioned as a feature on this page: http://msdn.microsoft.com/en-us/library/4dt5w8ta.aspx This is VS2010 Premium. ...

Source code not showing while debugging in XCode, only assembly

Is there any reason why XCode would fail to show the source code for a specific file while debugging? I have a breakpoint in the file which xcode hits correctly, but all I see is assembly. More annoyingly, this problem only shows up for one specific file (a regular .m file), but no other file. None of my co-workers have this problem, so ...

How can I debug a seemingly hardware-dependent issue with my Android app without access to the hardware?

I have an open-source application on the Android market. It seems to work fine for me (with over 1,000 active installs, I have to presume that it works for most people). I recently got a bug report that indicated a problem for at least three users on Samsung phones (Intercept and Captivate). I have been unable to reproduce the problem...

Best practices for maitaining symbols of binaries

I have a product which has around 7 services and one User Interface. Time to time new releases are given in the product and hence the binaries get changed over a period of time. The customer base is huge and so we get queries related to crashes of our services in some cases. To identify the cause for crash we get the symbols(PDB) of the...

Ubuntu just-in-time debugging

Good Morning everyone I'm currently facing a segfault at random on a little piece of software, however, It appears only when not started with an attached debugger (due to a possible memory error, where values are initialized in a safe interval when started with a debugger). Is it possible to attach an debugger only in case of an segfau...

GDB 6.3 gives "Cannot access memory at address 0x<32bitval>" when stepping through code

I'm using the gdb debugger to step through my code to verify my logic for sample inputs, but I'm getting this error whenever i'm trying to read the value of any variable/structure/STL object (using print). However, when I'm printing the contents of the address (which gdb allegedly cannot access), I'm reading back the value properly. Any ...

How can I debug external JAR files

Hi, I'm using some apache libraries in my code. At the moment I'm hitting a variety of problems that I need to debug. However the problem is when I pass data into one of said Apache libraries, when I try to step into the method call using netbeans it simply does the processing in the background and doesn't step into the code I want to ...

Can not debug an ActiveX inside a VB6 project with several components inside

Hello, I have to debug a big application done in VB6. The application is comprised of a main EXE, some ActiveX projects and other ActiveX control projects. The problem I'm facing is that I cannot hit breakpoints inside some ActiveX projects. Looks like the application is using the OCX outside the debugger because the application runs b...

Show a seq in the watch window

Is there any way to get Visual Studio debugger to display the contents of an F# seq expression? Visual Studio knows about IEnumerable<T> objects and gives you a results view inside the watch window. If you look at one of these in the watch window you get a mess of private fields. Some potential alternatives: fsi.exe does a nice job o...

What is the purpose of the Call Stack window in Visual Studio?

What is the purpose of the Call Stack window in Visual Studio? ...

Visual Studio 2010 Designer Bug: Unable to copy from obj\debug to bin\debug

Wondering if anyone has a solution to this 2010 bug. I have a project that built fine in Visual Studio 2008 that wont build in 2010 because Visual Studio is holding on to the dll after the application is run ONLY if a designer window is open. I created a really light weight project that shows this problem. If you create an applicatio...

Debugging arm-elf C code using Zylin in Eclipse CDT

Hi everyone, I'm using Eclipse CDT with Zylin embedded debug (native) and arm-elf-gdb 6.6 on OS X 10.5.8. I've got an OCD debugger connecting to a board with an ARM processor. Eclipse is able to stop at the first breakpoint and gather variables from memory, but any subsequent breakpoints or single-steps fail. I can set breakpoints ok w...

Why Won't Komodo 6 Run or Debug Python 3 Code?

My problem: I try to debug some python 3 code. Komodo gives me this error message: "Komodo does not support execution of Python3 files through the debugger subsystem, please use a run command in the toolbox to process this file." then when I run 'run,' it gives me this error: "'run' is not recognized as an internal or external comma...

Correcting Powerpoint 2007 XML Errors

I'm currently writing a process that generates Powerpoint reports programmatically from a given template using the MSXML library via VBScript. The only manipulation of the XML I'm doing is to duplicate slides, insert data into the Excel datatables for charts and a couple of title-text text replacements. I'm testing on 2 templates which a...

NSZombie shows empty object

Hello! I am experiencing problem and can't find what's wrong. As usual when I saw EXC_BAD_ACCESS message I turned on Instruments with NSZombie activated. When the error occurs and the NSZombie show message: "An Objective-C message was sent to a deallocated object (zombie) at address: 0x10083560" I click on arrow and see empty list. NSZo...