Skip to main content

Questions tagged [debugging]

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.

10 votes
6 answers
2k views

I'm looking for a name or attempts to document a particular thought patten used by most experienced engineers when they debug. Most experienced engineers develop a sense of hierarchy for what is ...
Philip Couling's user avatar
3 votes
1 answer
255 views

I'm having trouble with managing the working directory in Jupyter Notebook. For example, I have a .py script that requires me to change the working directory to its directory to run it properly. I've ...
newbie's user avatar
  • 47
22 votes
4 answers
6k views

The traditional non AI software with if-then-else and loop statements can be fully controlled. In contrast, machine learning software behaviour is unpredictable since the developer cannot control what ...
curious's user avatar
  • 331
5 votes
6 answers
389 views

I heard that if you maintain a program, you have to study what the code does. Another engineer said it is not necessary. Just use test cases to find out the function that does not work well, modify ...
user avatar
1 vote
2 answers
358 views

I'm writing a script for a webapp, which I can only copy my code manually to its platform and not push it from my machine. In the code there are parts that use its API and parts that don't. I cannot ...
Ooker's user avatar
  • 335
19 votes
11 answers
6k views

Sometimes, I have a hard time deciding between two good code traits: debuggability and readability. The snippets below are an oversimplification, but they illustrate my pain. Example 1: if(...
AndrasCsanyi's user avatar
-1 votes
1 answer
137 views

Recently I encountered an issue at work where a unit test written in C++ would crash only when being compiled with MSVC 2017 (MSVC 2019 and up are fine). I tried to debug this issue and it seems like ...
yijiem's user avatar
  • 107
1 vote
6 answers
1k views

At some organizations I'm seeing a trend where if a bug is reported, engineers will directly rewrite the offending code without knowing the root cause. In general this will fix the bug, but in my ...
knart's user avatar
  • 127
0 votes
2 answers
131 views

Additional Context I make infrastructure for automated device testing. Debugging can be very time consuming because the devices have many states and are constantly being updated with new builds which ...
Klik's user avatar
  • 1,685
-4 votes
3 answers
220 views

I find when I am programming and I fix a bug in one area of the codebase, sometimes something slightly related or maybe unrelated breaks, and as a result I usually copy and paste the fix to a ...
jackw11111's user avatar
0 votes
2 answers
683 views

I have a very large C++ application running on a *nix environment, which is occasionally setting a particular date attribute on a structure, way off what it should be. I know which structure and which ...
Component 10's user avatar
0 votes
1 answer
218 views

Assume a low-level API is provided without source code (e.g. DirectX). The API provides a virtualization of hardware resources (GPU, CPU, audio card, etc.), which enables the user to call hardware-...
chckx592's user avatar
0 votes
1 answer
256 views

While testing my iOS application against the latest version, I've discovered a bug. For the purpose of this question, I am omitting the details of the bug. I was planning to migrate the application to ...
moonman239's user avatar
  • 2,063
2 votes
0 answers
148 views

In (the most widely used) programming languages there is a distinction between "statements" (function or loops bodies, assignments... basically "the stuff that ends with a ';'") ...
Vito De Tullio's user avatar
1 vote
3 answers
1k views

Would anyone here recommend using debug statements such as the following in production quality code? I think these are personally one of the easiest to include or exclude, but they make the code hard ...
love4shells___'s user avatar

15 30 50 per page
1
2 3 4 5
17