Questions tagged [pdb]

This tag refers to the Python debugger. For questions pertaining to the protein database file format, use the protein-database tag. For questions pertaining to Microsoft Program Database files, use the pdb-files tag.

The Python Debugger supports breakpoints, single stepping, inspection of stack frames, source code listing, and evaluation of arbitrary Python code in the context of any stack frame. It also supports post-mortem debugging and can be called under program control.

For questions pertaining to the protein database file format (.pdb), use the tag.

For questions pertaining to Microsoft "Program Database" (.pdb) files, use the tag.

880 questions
0
votes
1 answer

Any similar `x` command of gdb in pdb?

With gdb, we can see the memory units, like (gdb) x /**xb address, helping us understand how the variable reserved in computer actually. So can i do that with pdb? and how?
MMMMMCCLXXVII
  • 571
  • 1
  • 8
  • 23
0
votes
2 answers

How to experiment source code with `pdb`, `inspect`, `pprint`?

Problem I want to understand source code of Kur (deep learning library) I have no proper training in programming, I prefer to learn by experimenting without prior theoretical knowledge I want an easy tool to help me dig into the detail workings of…
Daniel
  • 1,428
  • 3
  • 16
  • 35
0
votes
1 answer

Not able to open PDB database- Oracle standard edition

I am using Oracle Database 12c Standard Edition Release 12.1.0.2.0 - 64bit on which I am facing a problem while opening PDB database. Error: SQL> select CON_ID,DBID,NAME,OPEN_MODE from v$pdbs; CON_ID DBID NAME …
Rahul Joshi
  • 31
  • 1
  • 9
0
votes
1 answer

Python. Django test weird behavior. PDB

So, I have a test that looks like this: for retailer in Retailer.objects.all(): retailer_categories = retailer.categories.all() empty_categories = [] not_empty_categories = [] for category in retailer_categories: if…
Alejandro Veintimilla
  • 10,743
  • 23
  • 91
  • 180
0
votes
1 answer

How do I get `pdb` to return from calling a file within another file?

I have one file that I'm executing (let's call it main.py): import anotherfile as afile afile.main() And inside afile, I have : def main(): import pdb pdb.set_trace() So, from the terminal I run python main. But, this does not set the…
makansij
  • 9,303
  • 37
  • 105
  • 183
0
votes
1 answer

ipdb debug not executing on breakpoint

I can not understand why is ipdb entering manage.py every time I start server, my breakpoint is set inside restapi/views.py and I'm starting my server with python -m ipdb manage.py runserver 192.168.33.11:8080, I'm working on vagrant. This is my…
copser
  • 2,523
  • 5
  • 38
  • 73
0
votes
1 answer

It is possible to use python's default help function In PDB?

When in PDB sessions, the function "help" gets overridden to show help on just debugger commands rather being able to do what the default python help function can do. Is there a way to access the original help function?
seewalker
  • 1,123
  • 10
  • 18
0
votes
1 answer

Debug Interactively a python code from another program

I'm writing a python editor with support to debugging. I have to debug interactively a python code from my application like a IDE, but without many options. I know bdb and pdb, but I have to execute this script saved into a file and send commands…
Eliakin Costa
  • 930
  • 6
  • 16
0
votes
1 answer

WindowsError builtin does not exist when using pdb

I have the following code in a file I'm testing. It checks if WindowsError does not exist and redefines it as a subclass of OSError. When debugging my application with pdb WindowsError is not available as a builtin so the if statement returns true…
Spitfire19
  • 260
  • 1
  • 2
  • 11
0
votes
2 answers

Calculating distances in PDB file

With reference to the question Calculating the distance between atomic coordinates, where the input is ATOM 920 CA GLN A 203 39.292 -13.354 17.416 1.00 55.76 C ATOM 929 CA HIS A 204 38.546 -15.963 14.792 1.00 29.53…
pradeep pant
  • 103
  • 4
0
votes
1 answer

Oracle 12c CentOS PDB Connection from client

I have an installation of Oracle 12c on a Windows Server 2012 machine. it has a single PDB (PDBORCL). I have created a user in this PDB and can connect to it from a client machine via SQL Developer using the user/pass for the user i created. the…
Craig Foster
  • 109
  • 1
  • 7
0
votes
1 answer

How to terminate flask process started in a unitTest

I'm trying to write some unit tests for a flask application i'm building, this is the file that contains the flask application app.py from flask import Flask app = Flask(__name__) @app.route('/') def home(): return 'hello world' and then the…
danidee
  • 9,298
  • 2
  • 35
  • 55
0
votes
1 answer

Oracle PDB Container Database using Docker/YML file

Is it possible to create an Oracle PDB Container Database using a YML file similar to Docker file format. IF Oracle calls PDB/CDB as Pluggable Container Database, shouldn't the container file format be similar to Docker? Thanks, Rajesh
Rajesh Jain
  • 1,159
  • 3
  • 19
  • 37
0
votes
1 answer

PDB debugger stability questions

I am using either pdb or ipdb for debugging my python code. However whenever I am using set_trace() I can typically run a handful of lines of code to test but it eventually freezes while I am typing. I kill the python process and have to re-run…
SteelyDanish
  • 629
  • 2
  • 8
  • 15
0
votes
0 answers

Oracle 12c cloning resulting in internal error code

I'm trying to clone an Oracle 12c pluggable database from a remote host, but I'm receiving an internal error code with very little to debug with: SQL> CREATE PLUGGABLE DATABASE CLONED_PDB FROM SRC_PDB@RCDB; CREATE PLUGGABLE DATABASE CLONED_PDB FROM…
dpfrakes
  • 103
  • 2
  • 8