![]() ![]() Instead of printing the filenames, we are now going to print the absolute paths using os.path.abspath() which I have wrapped into a (useless) function called get_abspath(). To try that out, we must stop the debugger, for now, (using the Stop button in the debug toolbar), and make a few changes to the script itself. But what if, the for loop itself was quite complicated and we wanted to delve into it and debug it? Now we can keep clicking the Continue option and we will see the local variables i and file getting updated to their respective values, along with the associated print statements.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |