diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000..dce2ee5
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 216f115..ef82715 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -3,13 +3,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -20,10 +94,33 @@
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -47,6 +144,7 @@
+
@@ -62,30 +160,45 @@
+
+
+
+
+
-
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
+
+
+
+
\ No newline at end of file
diff --git a/pysnooper/tracer.py b/pysnooper/tracer.py
index 1fd6284..13582b6 100644
--- a/pysnooper/tracer.py
+++ b/pysnooper/tracer.py
@@ -429,7 +429,7 @@ class Tracer:
str = '{indent}{newish_string}{name} = {value_repr}'.format(**locals())
idx = str.find(":")
if ("Start" in str):
- self.write('\033[33m' + str[0:idx + 3] + '\033[34m' + str[idx + 3:] + '\033[0m')
+ self.write('\033[95m' + str[0:idx + 3] + '\033[34m' + str[idx + 3:] + '\033[0m')
else:
self.write('\033[33m' + str[0:idx + 8] + '\033[34m' + str[idx + 8:] + '\033[0m')
elif old_local_reprs[name] != value_repr:
@@ -498,14 +498,14 @@ class Tracer:
self.max_variable_length,
self.normalize,
)
- self.write('\033[95m' + '{indent}Return value:.. {name} = {return_value_repr}'.
+ self.write('\033[95m' + '{indent}Return value:... {return_value_repr}'.
format(**locals()) + '\033[0m')
if event == 'exception':
exception = '\n'.join(traceback.format_exception_only(*arg[:2])).strip()
if self.max_variable_length:
exception = utils.truncate(exception, self.max_variable_length)
- self.write('{indent}Exception:..... {exception}'.
+ self.write('\033[31m' + '{indent}Exception:..... {exception}'.
format(**locals()))
return self.trace
diff --git a/test1.py b/test1.py
new file mode 100644
index 0000000..b6156c0
--- /dev/null
+++ b/test1.py
@@ -0,0 +1,18 @@
+import pysnooper
+
+@pysnooper.snoop()
+def bubble(number):
+ a = [5, 0, 2, 3, 6, 9, 1, 7, 4]
+ if number == 1:
+ for i in range(0,11):
+ for j in range(i, 9):
+ if(a[j] < a[i]):
+ temp = a[i]
+ a[i] = a[j]
+ a[j] = temp
+ return a
+
+ else:
+ return [0]
+
+print(bubble(0))
\ No newline at end of file