MCPcopy Create free account
hub / github.com/brain-workshop/brainworkshop / debug_msg

Function debug_msg

brainworkshop.py:32–39  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

30from __future__ import division
31VERSION = '5.0'
32def debug_msg(msg):
33 if DEBUG:
34 if isinstance(msg, Exception):
35 exc_type, exc_obj, exc_tb = sys.exc_info()
36 fname = os.path.split(exc_tb.tb_frame.f_code.co_filename)[1]
37 print('debug: %s Line %i' % (str(msg), exc_tb.tb_lineno))
38 else:
39 print('debug: %s' % str(msg))
40def error_msg(msg, e = None):
41 if DEBUG and e:
42 exc_type, exc_obj, exc_tb = sys.exc_info()

Callers 9

get_pyglet_media_PlayerFunction · 0.85
load_last_userFunction · 0.85
parse_configFunction · 0.85
rewrite_configfileFunction · 0.85
update_checkFunction · 0.85
brainworkshop.pyFile · 0.85
test_musicFunction · 0.85
parse_statsfileMethod · 0.85
submit_sessionMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_musicFunction · 0.68