Getting Help

Python bilan kodni tuzatishni o'rganish.

SU

Yordam Olish

Ushbu bo‘lim pdbda mavjud bo‘lgan barcha buyruqlarni qamrab olmaydi. Shuning uchun debuggerdan foydalanish bo‘yicha ko‘proq ma’lumot olish uchun pdb ichida help buyrug‘idan foydalanishingiz mumkin. Bu buyruq quyidagicha natija chiqaradi:

(Pdb) help
 
Documented commands (type help <topic>):
========================================
EOF c d h list q rv undisplay
a cl debug help ll quit s unt
alias clear disable ignore longlist r source until
args commands display interact n restart step up
b condition down j next return tbreak w
break cont enable jump p retval u whatis
 
bt continue exit l pp run unalias where
 
Miscellaneous help topics:
==========================
exec pdb

Maxsus Buyruq Bo‘yicha Yordam Olish

Agar ma’lum bir buyruqning vazifasini bilmoqchi bo‘lsangiz, helpdan keyin buyruq nomini yozing.

Misol

Quyidagi misolda where buyrug‘i haqida ma’lumot olinadi:

(Pdb) help where
w(here)
Print a stack trace, with the most recent frame at the bottom.
An arrow indicates the "current frame", which determines the
context of most commands. 'bt' is an alias for this command.

Amalda Sinab Ko‘ring

O‘z kodingizda help va boshqa yordamchi buyruqlarni sinab ko‘ring va debuggerning imkoniyatlarini o‘rganing!

Last updated on

On this page

Xato haqida xabar berish