# Show vtkDebugMacro in console using python

**URL:** https://discourse.vtk.org/t/show-vtkdebugmacro-in-console-using-python/8319
**Category:** Development
**Created:** [April 19, 2022, 12:34pm UTC](https://discourse.vtk.org/t/show-vtkdebugmacro-in-console-using-python/8319 "2022-04-19T12:34:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![syj](https://discourse.vtk.org/user_avatar/discourse.vtk.org/syj/32/7253_2.png) [@syj](https://discourse.vtk.org/u/syj)
#### Post date: [April 19, 2022, 12:34pm UTC](https://discourse.vtk.org/t/show-vtkdebugmacro-in-console-using-python/8319/1 "2022-04-19T12:34:28Z")

</div>

Hi guys,

I wonder if it is possible to show the vtkDebugMacro text in console, when using python?

```auto
reader=vtk.vtkDICOMImageReader()
reader.DebugOn()

```

I use the code above, but no debug text shows in console except error…  
Any clue I can follow? Thanks!
