Professional IronPython



Download 20,35 Mb.
Pdf ko'rish
bet271/453
Sana01.07.2022
Hajmi20,35 Mb.
#723045
1   ...   267   268   269   270   271   272   273   274   ...   453
258

CHAPTER 12
Debugging ironPython APPlicAtions
➤➤
b or break: Defines a breakpoint when you supply a line number or a function name. When 
you provide a function name, the breakpoint appears at the first executable line within the 
function. If an application spans multiple files, you can specify a filename, followed by a 
colon, followed by a line number (no function name allowed), such as 
ShowFilters2:1
.
A breakpoint can also include a condition. To add the condition, follow the breakpoint
specification with a comma and the condition you want to use, such as
ShowFilters2:2, Filter == None
. If you type just b or break, the debugger shows the 
current breakpoints. Use the 
cl
or 
clear
command to clear breakpoints you create.


bt, w, or where: Prints a stack trace with the most current frame at the bottom of the list. 
You can use this feature to see how the application arrived at the current point of execution.


c, cont, or continue: Continues application execution until the application ends or the debugger 
encounters a breakpoint.


cl or clear: Clears one or more breakpoints. You can specify the breakpoint to clear by providing 
one or more breakpoint numbers separated by spaces. As an alternative, you can supply a line 
number or a filename and line number combination (where the filename and line number are 
separated by a colon).


commands: Defines one or more commands that execute when the debugger arrives at a line 
of code specified by a breakpoint. You include the optional breakpoint as part of the com-
mands command. If you don’t supply a breakpoint, then the commands command refers to 
the last breakpoint you set. To stop adding commands to a breakpoint, simply type end. If 
you want to remove the commands for a breakpoint, type commands, press Enter, type end
and press Enter again. A command can consist of any interactive Python or debugger com-
mand. For example, if you want to automatically move to the next line of code, you’d simply 
add step as one of the commands.


condition: Adds a condition to a breakpoint. You must supply a breakpoint number and a 
Boolean statement (in string format) as arguments. The debugger doesn’t honor a breakpoint 
with a condition unless the condition evaluates to 
True
. The condition command lets you 
add a condition to a breakpoint after defining the breakpoint, rather than as part of defining 
the breakpoint. If you use condition with a breakpoint, but no condition, then the debugger 
removes a condition from a breakpoint, rather than adding one.



Download 20,35 Mb.

Do'stlaringiz bilan baham:
1   ...   267   268   269   270   271   272   273   274   ...   453




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish