Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
41 views

After trying Lavi Kumar's example it seems the package import pdbext.debug in ~/.pdbrc goes out of scope when another source file is called. ~/.pdbrc: !import pdbext.debug alias pl !pdbext.debug....
CharlieB's user avatar
0 votes
2 answers
108 views

I need the locals() text output to be easier to parse then what the default output is. I am using a IDE that I wrote in C that starts a tty() to run pdb and it captures the output from locals() and ...
CharlieB's user avatar
0 votes
0 answers
87 views

I'm debugging a python project (pyproject) in Qt Creator using built-in debugger. Python print() outputs only to Debugger Log window, where it's mixed with a lot of actual debugger output making it ...
Jack White's user avatar
0 votes
0 answers
80 views

I have the following file 'test.py' #!/usr/bin/env python3 if __name__ == '__main__': test: str = "This is a test" breakpoint() print(test) When executing this (no venv) auto-...
Jorgensen's user avatar
2 votes
1 answer
126 views

In Python pdb, can I limit number of stack levels shown by "where", around my current position in the stack? In my specific use case, I want to investigate an maximum recursion problem, ...
quazgar's user avatar
  • 4,722
0 votes
1 answer
53 views

I am debugging a code in Python using Pdb: a = [12, 3, 4, 10, 23, 1] def compute(x): return 2 * x for i in a: b = compute(i) To trace the value of a variable inside the loop, I set a ...
Hamid Rouhani's user avatar
0 votes
0 answers
92 views

I am building C++ project using msvc, with /Debug option to enable pdb generation. What I want to do, is being able to recover the full callstack, without providing the pdbs in production environment. ...
tony_merguez's user avatar
3 votes
2 answers
575 views

So the new hotness for scripts on your path in python is to use uv to create single file scripts. These look like this: #!/usr/bin/env -S uv run --script # -*- mode: python -*- # /// script # ...
Att Righ's user avatar
  • 1,987
0 votes
1 answer
66 views

sys.settrace and Bdb.trace_dispatch can trace events. But the "line" event is triggered before the execution of the line. I'm trying to get information exactly after the line being executed, ...
Phuturesh's user avatar
0 votes
1 answer
50 views

I often have to debug the python code by pdb debugger. It happens that it fails due to program errors that should be corrected. The problem is that I have to update the python code and restart the ...
Anatoly Osipov's user avatar
0 votes
0 answers
63 views

How do I enter into a function in Python Breakpoint in the terminal? I am trying to enter into a function that I called with my code but in the terminal, PDB just goes through it, like this: -> def ...
Alireza Reisi's user avatar
0 votes
0 answers
40 views

I have a .NET 4.8 WPF application that is obfuscated using Confuser. Confuser generates a new pdb that correctly maps the IL offsets in the obfuscated code to the corresponding original line numbers ...
Arjan's user avatar
  • 41
0 votes
0 answers
71 views

I have Python and Pandas code which does complex Pandas series calculations for thousands of series and runs these calculations parallel for speedup using multiprocessing. It seems Visual Studio Code ...
Mikko Ohtamaa's user avatar
0 votes
0 answers
53 views

> rpm -qi python3 Name python3 Version : 3.13.1 Release : 2.fc41 Architecture: x86_64 Source RPM : python3.13-3.13.1-2.fc41.src.rpm Build Date : Tue 10 Dec 2024 10:31:11 GMT In here ...
MMM's user avatar
  • 982
0 votes
0 answers
4k views

When I'm trying to use pdb debugger for robot framework script Im trying to print the variables however it is impossible for me. I constantly get NameError: name 'l' is not defined nor importable as ...
Domasek's user avatar
  • 11
1 vote
0 answers
135 views

I'm new to pdb and trying to learn. There is one thing that's bugging me a lot. Lot of examples that I read on blogs mention a code like this below: import pdb def buggy_function(x): result = 0 ...
sdawar's user avatar
  • 373
1 vote
0 answers
42 views

Accordig to Python's official documentation at pdb: You can also invoke pdb from the command line to debug other scripts. For example: python -m pdb myscript.py When invoked as a module, pdb will ...
Spartan's user avatar
  • 978
0 votes
0 answers
33 views

I want to jump to download_url function to see its implementation and skip seeing all the stuff in between, how to achieve that? I tried using s and n commands, but it doesn't take you to download_url ...
Tanishk Singh's user avatar
0 votes
1 answer
21 views

Just before running a Python script inside pdb (using python -m pdb), I tried to add a handler for sys.audit() calls: interact ← puts pdb into interactive Python mode import sys def myaudit(event, ...
nickpelling's user avatar
0 votes
0 answers
333 views

When I set a breakpoint in my pytest test functions, it seems to be debugging within the functions called by test rather than the test itself: def test_my_function(): test_value = np.random.choice(...
Alissa's user avatar
  • 99
4 votes
3 answers
250 views

Consider this script: print("before loop") for i in range(100): breakpoint() print("after loop") breakpoint() print("exit") Short of pressing "c" one ...
wim's user avatar
  • 368k
1 vote
5 answers
489 views

Let's say I have the following code : def returns_false(): breakpoint() return False assert(returns_false()) print("Hello world") Is there a sequence of pdb commands that will print &...
C4stor's user avatar
  • 8,056
1 vote
0 answers
311 views

Basically, I am performing a local clone (to the same CDB) of a very large PDB, approximately 12 terabytes, which is on OCI Oracle 19c, and I used the following command to perform the cloning: CREATE ...
dntz's user avatar
  • 11
0 votes
1 answer
62 views

I read in the Pdb documentation that To set a temporary global variable, use a convenience variable. A convenience variable is a variable whose name starts with $. For example, $foo = 1 sets a global ...
user avatar
0 votes
1 answer
52 views

I am not sure I can explain the issue better than a screenshot. Either I am severely underslept or I have lost it (or, both) chunks is a list of dict. I am able to run len(list(chunks[0].values())) ...
figs_and_nuts's user avatar
5 votes
1 answer
666 views

I have ipdb.set_trace() in my python code. When running the python script, I get the ipdb shell, but it throws the warning: WARNING: your terminal doesn't support cursor position requests (CPR) ...
Shreeshail Hingane's user avatar
1 vote
0 answers
110 views

Title says it all, I'm running jupyterlab with what should be default settings & the python builtin breakpoint() does nothing... It works fine in ipython/python though. Am I missing something?
profPlum's user avatar
  • 521
1 vote
0 answers
238 views

I have multiple "internal" library which I'm trying to manage with vcpkg+cmake. Generally speaking everything is working properly. I have only one minor issue which I can't solve. When ...
belox86's user avatar
  • 11
1 vote
1 answer
142 views

I'm so tired of this ... Well, pdb: set a breakpoint on file which isn't in sys.path says: According to this answer you can also set a break point by writing the full path to filename And I've ...
sdbbs's user avatar
  • 5,948
0 votes
0 answers
35 views

I've run into this problem countless times and I've tried to just overlook it but it's infuriating. About 25% of the time that I use the python debugger (usually on the command line, haven't tested ...
profPlum's user avatar
  • 521
1 vote
1 answer
672 views

I have a worker service in which I need to debug Python code. To execute Python code I need to use Pythonnet. Pdb module is used for debugging. I'm trying something like that: python.txt: import pdb ...
AnMSLbR's user avatar
  • 41
0 votes
1 answer
74 views

To debug a warning observed in my code, Im trying to find a way to programmatically identify the stack of functions being called by my code. As an example def func(x): return func2(x+4) def func2(...
Roshan Santhosh's user avatar
0 votes
1 answer
118 views

I noticed that sometimes JupyterNotebook doesn't print any of my outputs when I have code that iterates over a large number of PDB files. The code runs fine and will output what I need in my directory,...
natrium's user avatar
1 vote
1 answer
241 views

Recently, I disassembled some DLL&PDB with llvm-pdbutil pretty --classes. But I don't have the source codes for this DLL. In the output, I found some expressions in class body, mainly declarations ...
Nekomiya Kasane's user avatar
2 votes
1 answer
123 views

I'm trying to interactively run pdb on a remote system I don't own (I'm not sure if that's relevant), and it's behaving a bit differently than I expect. Listing the source shows there is clearly a ...
reas0n's user avatar
  • 489
0 votes
1 answer
286 views

Is there some way to get during debugging with pdb: currently opened python file currently active line of code indent on the current line of code and open the file in default text editor? Example. ...
FamousSnake's user avatar
0 votes
0 answers
24 views

In Unix OS, is it possible to detect if a python program running in pdb, is in "break" or "waiting" state, given the process ID? I would like to detect that from outside the python ...
Hadikhamoud's user avatar
0 votes
2 answers
1k views

I have a problem with Oracle 21c PDB connection. I have created an OS user which should be able to login to the Pluggable Database with... sqlplus / ...command. However it does not work on the way ...
Mike's user avatar
  • 5
1 vote
1 answer
302 views

If I define a pytest test like so: from my_app.main import some_function def test_example(): breakpoint() foo = 'bar' some_function() Then pdf will stop at the beginning of some_function ...
user3207874's user avatar
  • 3,847
0 votes
0 answers
347 views

An error occurred in the self-written DLL: SE EXCEPTION_ACCESS_VIOLATION at address 0x54E258BB inside C:\Program Files (x86)\...\...\...\lib.dll loaded at base address 0x54D80000. Invalid operation: ...
Strunin Vadim's user avatar
1 vote
1 answer
5k views

HI I am facing Database problems with PDB I checked the PDB ORC1PDB is RESTRICTED ... CON_ID CON_NAME OPEN MODE RESTRICTED ---------- ------------------------------ ---------...
Caio Katarn's user avatar
0 votes
1 answer
101 views

I'm learning to program and I've just switched to problem sets using Python language. Previously, I learned to write some small C programs. So when I debugged C programs, I used gdb and the display ...
Hoan Tran's user avatar
1 vote
0 answers
86 views

The l command for pdb is documented like so: l: List source code for the current file. Without arguments, list 11 lines around the current line or continue the previous listing. I often use this ...
Anton's user avatar
  • 449
1 vote
0 answers
83 views

I am trying to obtain the running state (such as variable dumps) of a Python program named A. Currently, I have created a debug script that spawns a Pdb subprocess to debug A and control it by sending ...
Devymex's user avatar
  • 465
0 votes
1 answer
289 views

In python I'm getting difficult to debug warnings. I'd like to have the debugger break when one of these warnings happen, so I can poke arround the variables. However I don't want to turn them into ...
darmual's user avatar
  • 279
0 votes
2 answers
649 views

I want to validate if there is source code difference occurred between two builds with help of .pdb files generated from Build1 and Build2. Little Background : I am using Visual Studio 2019 and My ...
PoomaniGP's user avatar
3 votes
1 answer
817 views

I am learning rdkit. At the moment I want to extract info from the ligand docked in the protein. The problem I face is that the bonds from the ligand are always returned as SINGLE, no matter there ...
vdlmrc's user avatar
  • 755
-3 votes
1 answer
200 views

This is my fragment .pdb file: ATOM 73 HG1 GLU 4 77.769 51.123 52.300 1.00 0.00 H ATOM 74 HG2 GLU 4 78.465 52.119 52.349 1.00 0.00 H ATOM 75 ...
skywalker's user avatar
1 vote
0 answers
39 views

I defined an alias in .pdbrc file as: # Next and list, and step and list. alias nl n;;l alias sl s;;l This works fine. But say when I press enter after nl it runs the last command of the alias which ...
seleciii44's user avatar
  • 1,579
0 votes
1 answer
138 views

Here is a sample python script. import sys print("Hello, world!") for i, line in enumerate(sys.stdin): print(line) print(f"Before breakpoint: {i}") breakpoint() ...
TG Gowda's user avatar
  • 12.1k

1
2 3 4 5
19