We’ll show you a couple of PDB commands. You might also like this pdb cheat sheet. Print a variable name. $ python3 hello.py 0 /Users/awdeorio/hello.py (4) - os.mkdir (dirname) (Pdb) p dirname 'hello/world/' Change a value while the program is running. In this post I’ll try to cover Basic DBA commands to manage a PDB and CDB in Oracle 12c so that we can at least be aware of the syntactic changes in 12c. Establish a Connection to a CDB/PDB. You connect to the root or a PDB through a database service. When you create a PDB, a default service with the same name as the PDB.

Getting Started

Pdb commands cheat sheet

Pdb Cheat Sheet

import pdb;pdb.set_trace()

python -m pdb <file.py>

Stepping

Pdp cheat sheet

Oracle Pdb Cheat Sheet

n(ext)

s(tep)

r(eturn)

c(ontinue)

u(p)

d(own)

h(elp)

h(elp) command

q(uit)

Breakpoints

Ipdb Commands

b(reak)

b(reak) line_number

b(reak) line_number, condition

Set a breakpoint at a specific line, if condition is met

b(reak) file:line_number

Set a breakpoint in a file at a specific line

b(reak) func

Set a breakpoint at the first line of a function

disable number

Disable breakpoint number

enable number

Enable breakpoint number

clear number

Remove breakpoint number

Printing

Python Pdb Cheat Sheet

p(rint) expr

pp expr

w(here)

l(ist)

l(ist) start, end

a(rgs)