# Kernel printf while using matlab

Hi,
I am using MATLAB 2019a with Cuda 10.0 and VS 17.
All seems to work well except that I cannot debug using a simple printf in the kernel mode.
I have been doing some investigation and it seems related to the fact that mxprintf is overriding the cuprintf\printf.
I tried to get it working by compiling cuprintf.cu as suggested online but it requires sm_11. Tried to set NVCC_FLAGS arch to sm_11 but apparently it is not supported.
I am out of any leads as to how to get it working. It is extremely hard to debug it without any printf ability in the kernel.
Any suggestions\workarounds would be very much appreciated.

Thank you.