Debugging is the process of examining the state of a program - generally with a debugging tool - while it is running and attempting to find bugs that cause it to behave abnormally.
0
votes
0answers
6 views
How can i use xdebug standalone without any IDE [on hold]
My Scenario is this
I have the Apache, PHP webserver running on Centos and i access the site by 192.168.0.100/index.php
I edit the files in Notepad++ by mounting site files with ssh drive on windows
...
0
votes
0answers
61 views
Why does Visual Studio run code after my breakpoint during a debug session? [migrated]
I am working on a project in c# that using threading to initialize multiple calls to xcopy to copy user directories from one workstation to a network location.
When I run the program in debug mode, ...
4
votes
2answers
276 views
How do you build debugging messages into your programs/scripts?
General, high-level question for people who work with code regularly.
I was repurposing some old, outdated Javascript code into a Chrome extension, and to help me understand it, I wrote some quick ...
0
votes
0answers
8 views
Display a pointer value with lldb debugger [migrated]
I'm working in a personal project of open-source technologies developing an application build it in C. I'm using the lldb debugger tool.
My question is simple: How can I display or show the values ...
1
vote
2answers
58 views
API for expanation of complicated calculation or business rules?
In online shops there are areas with complicated rules. For example
is a product visible in the product catalog
is a product sold out
what is the price for the product (Discounts, Promotions, ...)
...
3
votes
2answers
105 views
Verbose or concise logging [duplicate]
I was wondering how much data should be logged.
I know this deeply depends on multiple factors. But it can still be hard to find the golden middle way.
Lets say I have an application where people ...
1
vote
3answers
252 views
How do you avoid looping mistakes? Mistakes that are not detected by systems [closed]
I had this crazy initialisation --
documentList = new ArrayList<Map<String,Integer>>();
which I intended to store a new map everytime in a loop but unfortunately put itself inside the ...
-3
votes
2answers
211 views
What are the signs that a ten days debugging session will not resolve an issue? [closed]
Ten days ago, we fixed a bug on a large application and the hot fix has created a disappearing of some data from the user point of view (side effect). Data are not deleted, but have been set to hidden ...
2
votes
2answers
205 views
Is it realistic to use designers for complex UI [closed]
When I created my first web application few years ago, I remember trying to use the designer in VS 2008. Before I can even remember I abandoned it to the favor of actual debug to understand how my UI ...
42
votes
13answers
2k views
Is it reasonable to insist on reproducing every defect before diagnosing and fixing it?
I work for a software product company. We have large enterprise customers who implement our product and we provide support to them. For example, if there is a defect, we provide patches, etc. In other ...
-2
votes
1answer
143 views
PHP developer, how to solve javascript related issues in a program with millions of line [closed]
I am expert in PHP. There are some JavaScript related bugs in my
assignment given by my supervisor. I tried to fix them using Firebug.
It is time consuming. Is there any other ways?
Are there any ...
2
votes
2answers
188 views
When is it okay to log filename/line information for errors?
We have a closed-source commercial C++ application. Some of our logged error messages are in plain English like "ERROR: could not read file 'foo'". While others use a macro to print filename/line ...
1
vote
3answers
140 views
What techniques are there for debugging remote client side errors?
What techniques are there for debugging remote client side errors in a web application, especially when they only affect a small subset of users?
In my case we have an app that is working well for ...
0
votes
1answer
616 views
Best way to quickly explore/grok open source C/C++ projects? [duplicate]
I'm looking for a suggested workflow for quickly being able to download various c/c++ open source projects and then begin intelligently navigate sources.
"Intelligently" means being able to jump ...
-1
votes
1answer
204 views
Is there a tool that visually represents all the potential paths to a particular piece of code? [closed]
As an example of what I need and why I want it, I am trying to determine how a certain value (CurTotal) is getting set (wrongly). I've come up with these notes to myself to try to understand just what ...
1
vote
1answer
167 views
How do I go about debugging a PHP error?
I am coming from .NET to PHP. I am playing around with a long file written by someone else (called "cryptographp.inc.php"). It builds and returns an image to the browser.
I want to show the image ...
0
votes
4answers
127 views
Naming: objectAction or actionObject?
The question, Stored procedure Naming conventions?, and Joel's excellent Making Wrong Code Look Wrong article come closest to addressing my question, but I'm looking for a more general set of criteria ...
4
votes
2answers
330 views
Writing Large Portions Of Code Then Debugging?
Lately I have been writing a game engine, and I have been writing a lot of "foundation stuff" (standard interfaces, modules, a message system ect.), but I have noticed a pattern, a lot of the stuff is ...
1
vote
2answers
144 views
Building Websites: Fast Debugging Without a Browser
Is there a methodology to debug websites without a browser?
Normally I use a web browser to view a results page. The slow debugging process confuses me a little. To correct an error I need to switch ...
14
votes
1answer
436 views
Dollar Sign Blues: Javascript and PHP
I grew up programming C++ and Java where everything was safe and beautiful. Compilers made sure to keep me in check if I ever strayed. Of course, everyone did a little Perl in college, but I didn't ...
115
votes
17answers
19k views
Is there any way to get faster at solving bugs? I've just had a warning from my boss
I've just been told by my boss that I will receive a negative performance review on Monday. He wants to talk to me about why I am so slow and why my bug fix rate is so low.
I love programming and ...
19
votes
5answers
1k views
How did they debug segmentation faults before protected memory?
Now, when I make a programming mistake with pointers in C, I get a nice segmentation fault, my program crashes and the debugger can even tell me where it went wrong.
How did they do that in the time ...
-1
votes
1answer
230 views
Is reverse debugging possible? [duplicate]
I know there are some products for reverse debugging.
I am wondering that does reverse debugging mean going to one step back or starting over again up to one step back?
I've found an explanation ...
1
vote
5answers
765 views
How useful is “rubber duck debugging”? [duplicate]
I just learned about rubber duck debugging, where the programmer explains code, line by line, to a rubber duck or other inanimate object in order to find the problem. This approach sounds ...
3
votes
1answer
154 views
Self Debuggable systems
For example, in case of GDB it is possible to debug itself by itself. I have not been able to find any JVM that can debug itself or even allows debugging on source level.
I was just wondering if ...
2
votes
2answers
272 views
How do IDE-s provide auto-completion, instant error checking and debugging? [closed]
Say you have a language compiler you would like to build an IDE for.
How is auto completion, instant error reporting while writing code and debuggers commonly implemented?
1
vote
0answers
114 views
Modern analog of DDD (Data Display Debugger)
I if there are visual applications for debugging code in popular languages (like C, Pytho, Javascript).
By visual I do not mean debugger with UI which is bundled with almost every IDE, I'm rather ...
0
votes
1answer
134 views
While running an application the error occurs, while debugging it doesn't [duplicate]
There is an issue which appears while running the application. It is not an Exception, but the desired UI change is not been implemented.
While debugging to find the code which should be changed to ...
0
votes
2answers
341 views
How to get better at debugging? [duplicate]
How can one become better at debugging in general? I do not mean specific tools or tactics that apply to a certain programming language or stack, but simply how to make your mind better at it, ...
3
votes
1answer
233 views
Name for a bug that disappears when someone else looks at it [closed]
Does anyone know of an existing name for a bug that disappears the moment you call someone over to look at it? It's a funny phenomenon, but it has happened from time to time that I'm working on a bug ...
1
vote
1answer
140 views
How to debug through a swing based application effectively
I am trying to understand how a radio button is created in a Dynamic field by reading from an XML using Netbeans 7.0.
I know the radio button is created because of the XML being read from database, ...
0
votes
1answer
1k views
Fastest native C++ multi-platform compiler & IDE & debugger [closed]
If I'll begin developing cross platform applications, The complied file speed is very important for me .
I have research before than and find same result about IDE :
(I ignored eclipse because very ...
50
votes
7answers
3k views
How do you debug without an IDE?
Every time I look for an IDE (currently i'm tinkering with Go), I find a thread full of people recommending Vi, Emacs, Notepad++ etc.
I've never done any development outside of an IDE; I guess I've ...
4
votes
2answers
1k views
What are the pros and cons of Inter process communication done via sockets vs shared memory?
I understand that two of the many more options for inter process communication can be :
Shared memory
Sockets
Actually I saw these two options being exposed by Intellij Idea for debugging a Java ...
13
votes
2answers
15k views
A good IDE for NodeJS - debugging especially important [closed]
Have a significant amount of a Data Warehousing application written in Javascript.
The application is set up so that the Javascript code runs in a web browser (Chrome). Of course, running a Data ...
24
votes
5answers
2k views
Why is reverse debugging rarely used?
gdb implemented support for reverse debugging in 2009 (with gdb 7.0). I never heard about it until 2012. Now I find it extremely useful for certain types of debugging problems. I wished that I heard ...
0
votes
2answers
184 views
Testing UI for azure web app on iPad
I am working on debugging my mobile application. There is a specific requirement/issue that I am having related to a drag and drop touch interface on an iPad. I am at the trial and error phase of ...
7
votes
5answers
360 views
How to understand and debug legacy software? [duplicate]
Possible Duplicate:
I’ve inherited 200K lines of spaghetti code — what now?
Not long ago my company placed me in a team that deals with some of the most complex bugs that are in production. ...
1
vote
3answers
304 views
Programming language features that help to catch bugs early [closed]
Do you know any programming language features that help to detect bugs early in the software development process - ideally at compile-time or else as early as possible at run-time?
Examples of ...
1
vote
2answers
2k views
Print all values in a value object [closed]
I have to debug an issue which requires me to print all the values of a Value Object that is returned by a web service call. The Value object is a complex object in the sense, it has another object as ...
3
votes
2answers
186 views
Debugging framework for domain specific language
I want to know if there are any tools/tool-kits which aid in building
source level debuggers for domain specific languages ?
(I work on a proprietary DSL, which doesn't have any tools
and sometimes ...
5
votes
7answers
1k views
Programming Interview : How to debug a program?
I was recently asked the following question in an interview :
How do you debug a C++ program ?
I started by explaining that programs may have syntax and semantic errors. Compiler reports the ...
2
votes
6answers
816 views
What are the advantages of using the Java debugger over println?
I always use System.out.println(...) to debug my code, and it works pretty well. In which cases do you use the eclipse java debugger? I never had to use it and the little bug symbol is still ab bit ...
23
votes
3answers
2k views
What is the term for a 'decoy' feature or intentional bug? [closed]
I have forgotten a slang programming term. This thing is an intentional bug or a decoy feature used as a distraction. An example usage, "Hey Bob, QA is doing a review today. Put a $THING into the ...
1
vote
1answer
131 views
Good example of gprof, for iOS project
The GNU profiler gprof, can be used to profile any application right on the device, allowing real world profiling.
As Xcode 4.5 based on LLVM plus it has GNU Debugger, Profiler, and others.
I need ...
4
votes
4answers
1k views
What is a zombie process or thread?
What is a zombie process or thread, and what creates them? Do I just kill them, or can I do something to get diagnostics about how they died?
39
votes
8answers
2k views
Does software testing methodology rely on flawed data?
It’s a well-known fact in software engineering that the cost of fixing a bug increases exponentially the later in development that bug is discovered. This is supported by data published in Code ...
5
votes
2answers
872 views
Differences between imperative-language and functional-language debuggers
Up to now I have always worked with imperative languages like Pascal, C, C++, Java in a production environment, so I have experience with debuggers for these languages (Turbo Pascal, Turbo C, GDB / ...
2
votes
1answer
165 views
How do I debug a cluster running Microsoft server 2003?
I'm sole developer of a complex critical software system, written in Visual C++ 2005.
It's deployed on a classical Microsoft cluster scenario (active/passive), that has Windows Server 2003 R2.
If a ...
12
votes
6answers
680 views
Debugging: understanding details on why certain fixes worked?
When debugging, I sometimes find that I make some changes and I am not 100% sure why those changes correct some bug in the program. Is it essential to understand every single detail about why some ...