Debugging is a methodical process of finding and reducing the number of bugs, or defects, in a computer program.

learn more… | top users | synonyms (2)

0
votes
1answer
34 views

How to write a function that can print the name and value of its argument? [duplicate]

It would be very useful for debugging to have a function like thus: a = np.arange(20) debug_print(a) The above should print variable: a val: [...] thanks a lot.
0
votes
1answer
27 views

Qt Application shows build error in Debug mode, OK in release mode

I have Qt (I think 4.8.4) 32-bit statically compiled on my 64-bit Windows 7. The compiler I am using is MinGW 32-bit (mingw32-make.exe). When I build it statically in release mode, files are generated ...
1
vote
2answers
33 views

Why would a stack trace skip a function that obviously has to have been called for the following functions to have been reached?

Given a setup like this, where DoFooStuff() is called: class Foo { public: void DoFooStuff(); // calls Bar::DoBarStuff() } class Bar { public: void DoBarStuff(); // Calls ...
0
votes
3answers
32 views

Getting name of local variable at runtime in Python

I should preface this by saying the following: I know this functionality is not supported by default - what I'm attempting is a hacky workaround that has very little practical application, and is a ...
1
vote
1answer
15 views

Implicit declaration of function '…' is invalid on C99

I am still working on an iPhone app called Cruzia and am now wondering why I am geting these two warnings, both in ViewController.m and three errors, all an Apple Mach-O Linker Error. If you can point ...
1
vote
1answer
70 views

Get address of main() function

I'm trying to get address of main() function in this way: int main(int argc, char *argv[]) { void *pMainAddress=(void *)&main; printf("Address of main() 0x%08X \n", pMainAddress); When I ...
0
votes
1answer
41 views

Replacing a char with a string in a linked list bug?

The following code is supposed to replace a node that contains a single character with several a linked list of nodes converted from a string: node *replaceChar(node *head, char key, char *str) { ...
0
votes
1answer
15 views

Viewing CSS comments in Internet Explorer's F12 Developer Tools

I never noticed this before, but IE's dev tools completely strip out CSS comments in the CSS tab. I'm working with a large front-end framework and need to wade through the dev version of the CSS -- ...
0
votes
0answers
8 views

cannot ssh to qemu vm when starting qemu with external kernel

I installed debian 7.0 (kernel 3.2) in qemu and redirected port 22 (qemu vm) to port 2222 in my host (Ubuntu 12.04). Everything seems fine. I can boot the qemu vm and log in to the vm via ssh (ssh -p ...
0
votes
1answer
28 views

Checking for __debug__ and some other condition in Python

In Python sometimes I want to do something like (1) if __debug__ and verbose: print "whatever" If Python is run with -O, then I'd like for that whole piece of code to disappear, as it would if I ...
0
votes
2answers
42 views

Using Heron's formula to calculate area - JavaScript

My code: function calculate(sides) { var sides = prompt("Triangle side lengths in cm (number,number,number)"); //String will be size of 4 var nsides = sides.split(" "); //Splits content into ...
0
votes
0answers
7 views

Debug a linux gcore and heap

I have an application where the customer provided a gcore of the running process. There are objects in memory which contain wrong values. The customer had hoped that the gcore could reveal a usable ...
1
vote
1answer
19 views

Why does getFacesContext() become null

I have a JSF 2 application running on Jetty 9, Mojarra 2.1 and PrimeFaces 3.3. In the initial page, I get NullPointerException. I debugged it and found out that getFacesContext() inside ...
5
votes
1answer
35 views

What does stripped JARs (no bytecode for methods) mean?

I am trying hard to find the cause of a weird JSF error. To do this, I try to debug the source code inside javaee-web-api module where a NullPointerException is thrown during JSF rendering. But I am ...
0
votes
0answers
10 views

Tracking a variable using Chrome developer tools

Is it possible to track a variable (or array), using Chrome's developer tools. Ideally tracking what script sets a value or changes a value. I know it's a long shot. Thanks.

1 2 3 4 5 1235
15 30 50 per page