Skip to content

Commit

Permalink
[Doc] Update debugging.md (#6212)
Browse files Browse the repository at this point in the history
  • Loading branch information
neozhaoliang authored Sep 30, 2022
1 parent a562c4c commit a55ea42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/lang/articles/debug/debugging.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def inside_taichi_scope():
#=> ray.ori = [0.0, 0.0, 0.0], ray.dir = [0.0, 0.0, 1.0], ray.len = 1.0
```


### Applicable backends

`print` in the Taichi scope is supported on the CPU, CUDA, and Vulkan backends only.
Expand Down Expand Up @@ -95,7 +95,7 @@ foo()
## Compile-time `ti.static_print`

It can be useful to print Python objects and their properties like data types or SNodes in the Taichi scope. Similar to `ti.static`, which makes the compiler evaluate an argument at compile time (see the [Metaprogramming](../advanced/meta.md) for more information), `ti.static_print` prints compile-time constants in the Taichi scope:

```python
x = ti.field(ti.f32, (2, 3))
y = 1
Expand Down

0 comments on commit a55ea42

Please sign in to comment.