Linked Questions

0 votes
3 answers
1k views

I am trying to learn the basics of programming using python, and I am getting to the point where I have to deal with if statements and for loops. The thing is that I am getting a bit confused as to ...
0 votes
1 answer
1k views

I am looking at a body of code and am trying to learn how to tell the order that each line executes. Is there a way to get this from a command in Python? Or is there a way to find out the order that ...
2 votes
1 answer
748 views

we are running some python scripts on linux since python are sometimes difficult to understand in case of failure then need to find a good way of debugging for example from bash world its bash -x ...
0 votes
0 answers
563 views

I have python script fruits.py when I run it python fruits.py, it generates output. Is there a way like some debug flag in python? or some code to write in script, with which I can see code ...
geek_xed's user avatar
  • 175
4 votes
1 answer
254 views

I want to observe the data flow in a package that is executed in the shell. Is the freqtrade bot. I want to run it step by step so I can observe the dataflow. This have to be executed in the shell ...
1 vote
1 answer
181 views

Let's consider the small script above. def d(n): if n==0: return 0 else: return d(n−1) print d(3) Is there tool that can report each step action as a debugger can do ?
user avatar
0 votes
2 answers
85 views

To clarify my question, for example in some IDEs such as PyCharm one can put a breakpoint in the code, run the python script and when the code reaches that breakpoint, the program stops while the user ...
Alejandro's user avatar
  • 979
1 vote
1 answer
67 views

I am writing a code for a simple game of tic-tac-toe using lists. I have used multiple functions to display the game board, to check for a winner and to get position input for X and O. The main while ...
Athish's user avatar
  • 11
0 votes
0 answers
45 views

I am newly converting to Python and want to know how to stop or pause in a script for diagnostic purposes. For instance, I want to do something like: If Condition_is_True: Statement else: ...
astromz's user avatar
  • 21
260 votes
9 answers
403k views

I'm doing some assembly-level debugging in GDB. Is there a way to get GDB to show me the current assembly instruction in the same way that it shows the current source line? The default output after ...
JSBձոգչ's user avatar
  • 41.6k
162 votes
15 answers
159k views

Just a convenience question. I've been a bit spoiled with debuggers in IDEs like Visual Studio and XCode. I find it a bit clumsy to have to type import pdb; pdb.set_trace() to set a breakpoint (I'd ...
Joe's user avatar
  • 48k
148 votes
6 answers
190k views

I have been coding a lot in Python of late. And I have been working with data that I haven't worked with before, using formulae never seen before and dealing with huge files. All this made me write a ...
crazyaboutliv's user avatar
185 votes
2 answers
33k views

This is intended to be a general-purpose question to assist new programmers who have a problem with a program, but who do not know how to use a debugger to diagnose the cause of the problem. This ...
55 votes
8 answers
22k views

By default, during debugging in IPython, ipdb shows one line above and one line below the current position in code. Is there an easy way to make the area shown a bit bigger? I'd think it would be ...
38 votes
6 answers
41k views

I know that a Python script can be debugged from the command line with python -m pdb my_script.py if my_script.py is a script intended to be run with python my_script.py. However, a python module ...

15 30 50 per page
1
2 3 4 5
...
10