Skip to main content

The package provides a more direct way to help students ask their questions about the errors in their codes by combining the codes and the errors to one file.

Project description


To help students to upload their codes along with errors, this module comes up. Based on the work of cgitb, it provides more functionalities to simply gather the code and the errors for teachers to have a clean view on where the bug might be.


Simply import yuDebug. When an error pops up, there will be guide in the console.





import yuDebug




发生异常,代码及报错已保存到./yuLog.txt 请双击打开文件,并复制全部内容,粘贴到qq群内寻求帮助 yuLog.txt的内容如下

[Author: PuluterYu]

[=====Raw Code Part=====]
    1 #coding:utf-8
    2 import yud
    4 a = 1/0
    5 b = 1/3
    6 c = 1/4
    7 b = 1/3
    8 c = 1/4
    9 d = 1/0

[=====Basic Part=====]
Python 3.7.0: C:\Users\HASEE\AppData\Local\Programs\Python\Python37\python.exe
Sun Feb 16 13:37:24 2020

[=====Data Part=====]
a undefined

[=====Raw Error=====]
ZeroDivisionError: division by zero

    The above is a description of an error in a Python program.  Here is
    the original traceback:

    Traceback (most recent call last):
  File ".\", line 4, in <module>
    a = 1/0
ZeroDivisionError: division by zero


  1. 全部源代码
  2. 运行环境
  3. 局部变量值
  4. 原生报错信息

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for yuDebug, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size yuDebug-1.0.2-py3-none-any.whl (11.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size yuDebug-1.0.2.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page