Questions tagged [debugging]
Debugging is a methodical process of finding and fixing bugs in a computer program. **IMPORTANT NOTE:** This tag is ONLY for questions about debugging techniques or the process of debugging itself, NOT for requesting help debugging your code.
debugging
52,668
questions
0
votes
0
answers
8
views
How do I debug: AssertionError: Gaps in blk ref_locs
I'm not sure how to resolve this error which seems to happen randomly. I can't share the source code but if there's any ideas on what I can do to prevent this error that will be appreciated. For now I ...
-3
votes
0
answers
17
views
What are 0-3 effective general debugging practices to id the points and specific line #s of possible errors?
Context:
Currently my only normal strategy is adding print() statements at the end of methods, usually multiple at different checkpoints of a given python program.
The logic behind this is that if ...
0
votes
0
answers
12
views
Configuring SSH port forwarding for Django app on VPS: Browser access issues
I am running a Django application on my laptop at port 8000. The app works locally and I want to make it accessible to others over the internet via SSH remote port forwarding to a VPS.
I've connected ...
0
votes
2
answers
22
views
How can I do comparison of a value Optional([:])
I am logging out (well, print()-ing) some variables, and too many times as output I have value:
Optional([:])
I want to ignore this value, so I tried
if a == Optional([:]) {
// ignore
} else {
...
1
vote
0
answers
34
views
How do I debug intermittent import issues when using python virtualenv?
I created a virtual environment from Python 3.10.11 using virtualenv for my project, and every once in a while as I am programming and running test scripts, the scripts will get 'stuck'. When this ...
0
votes
0
answers
11
views
Is this an Xcode bug?
The xcode debugger jumps unexpectedly from line 11 to line 16 (past return!) in this C++ code and back to
line 11, when I do "step over" or "step in". (This is the minimal working ...
0
votes
0
answers
11
views
Setting breakpoint properties in Xilinx SDK
I am using the XSCT console (I MUST USE IT) for Xilinx SDK 2018.3 to add a watchpoint. I want to specify the Range property, which I can do using the GUI. So far I haven't been able to set this ...
0
votes
0
answers
39
views
VBA - workbook_open crushes macro that worked before but works fine when run manually
I have a code that did work but then stopped for some users and now, after some time, also for me most of the time. It does not work when automatically run when opening excel, but it does work when I ...
0
votes
0
answers
11
views
How to overcome file lock error when using Arelle with Python?
installed arelle with pip install arelle-release. Mandatory dependencies seem to be present.
After importing and initialising Cntlr, I attempted to load the target document but I am receiving a ...
1
vote
0
answers
35
views
No hang when stepping manually through problematic code; otherwise, it hangs. What tools does the editor + debugger have to examine?
I have a problematic section of code. The start of the section is decorated with a print statement, as is the end:
print("starting problematic section") # <-- breakpoint set here
# ...
-3
votes
0
answers
21
views
Debugging issues from weather and news project [closed]
I am finishing a project in creating an application to display both news and weather using java in android studio. I finished entering all the code for the program but when I am debugging the program. ...
-2
votes
0
answers
25
views
Experiencing error when trying to use lapply() on my data frame [closed]
I've gotten an error that looks like this :
Error in get(as.character(FUN), mode = "function", envir = envir) :
object 'Lions' of mode 'function' was not found
and I'm not quite sure how ...
0
votes
0
answers
41
views
Python Debugging is too slow? How to make it the debugging faster?
import time
from uuid import uuid4
a=[uuid4() for i in range(20000)]
b=a[:19000]+[uuid4() for i in range(1000)]
start=time.time()
c=[i for i in a if i in b]
print(c)
print(time.time()-start)
print(&...
-2
votes
0
answers
28
views
Visual studio code debug issue [closed]
Ive been using visual studio code to write HTML and some Javascript. But I cant use the debug feature to run my code. I have to right click to "open with live server".
Why does it not work ...
0
votes
0
answers
31
views
Get cpython to optimize out constant conditions
I'm writing code in Python that needs to run as efficiently as possible, but I sometimes have the need to dig deep into debugging statements. Instead of commenting these in- or out (or using an ...