-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
25 lines (19 loc) · 851 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This is a sample Python script.
import time
# Press ⌃R to execute it or replace it with your code.
# Press Double ⇧ to search everywhere for classes, files, tool windows, actions, and settings.
import ExceptionNotify
ExceptionNotify.install(register_done_handler=True,register_kill_handler=True,re_raise=True)
def print_hi(name):
# Use a breakpoint in the code line below to debug your script.
print(f'Hi, {name}') # Press ⌘F8 to toggle the breakpoint.
ExceptionNotify.update_info({"Arg1": "V2"})
print(462//0)
ExceptionNotify.update_info({"Arg1": "V3"})
# Press the green button in the gutter to run the script.
if __name__ == '__main__':
ExceptionNotify.update_info({"Arg1": "V1"})
print_hi('PyCharm')
# while True:
# time.sleep(1)
# See PyCharm help at https://www.jetbrains.com/help/pycharm/