Skip to content

Commit 35e76f6

Browse files
committed
minor improvement to debugging experience
1 parent d0c588b commit 35e76f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/runtime/pythonexception.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ public static bool Matches(IntPtr ob)
250250
return Runtime.PyErr_ExceptionMatches(ob) != 0;
251251
}
252252

253+
[System.Diagnostics.DebuggerHidden]
253254
public static void ThrowIfIsNull(IntPtr ob)
254255
{
255256
if (ob == IntPtr.Zero)
@@ -258,6 +259,7 @@ public static void ThrowIfIsNull(IntPtr ob)
258259
}
259260
}
260261

262+
[System.Diagnostics.DebuggerHidden]
261263
internal static void ThrowIfIsNull(BorrowedReference reference)
262264
{
263265
if (reference.IsNull)
@@ -266,6 +268,7 @@ internal static void ThrowIfIsNull(BorrowedReference reference)
266268
}
267269
}
268270

271+
[System.Diagnostics.DebuggerHidden]
269272
public static void ThrowIfIsNotZero(int value)
270273
{
271274
if (value != 0)

0 commit comments

Comments
 (0)