Skip to content

Commit

Permalink
Fix debug detection in Tensor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
holl- committed Oct 23, 2023
1 parent df1f608 commit 1402d88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phiml/math/_tensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2268,7 +2268,7 @@ def check_is_printing():
import traceback, sys
stack = traceback.extract_stack()
for frame in stack:
if "_pydevd_bundle\\pydevd_xml.py" in frame.filename:
if "_pydevd_bundle\\pydevd_xml.py" in frame.filename or "_pydevd_bundle/pydevd_xml.py" in frame.filename:
return False
for frame in stack:
if frame.line.strip().startswith('print('):
Expand Down

0 comments on commit 1402d88

Please sign in to comment.