cancel
Showing results for 
Search instead for 
Did you mean: 

How to print on terminal while debugging TouchGFX

nico23
Associate III

I'm using Visual Studio 2022 to develop and debug TouchGFX software

Every time I launch the debug the console output shows 

 

'Application.exe' (Win32): download of 'C:\Windows\SysWOW64\windows.storage.dll' completed
...
Thread 2792 exited with code 0 (0x0).
...

 

Is there a way to print also the cout like

 

void MainWheel::handleDragEvent(const DragEvent& evt)
{
    std::cout << "Variation X: " << evt.getDeltaX() << ", Variation Y: " << evt.getDeltaY() << std::endl;

 

1 ACCEPTED SOLUTION

Accepted Solutions
LouisB
ST Employee

Hello @nico23,

Use 

#include <touchgfx/Utils.hpp>

touchgfx_printf("blabla %i",my_val),

 Check here : Simulator | TouchGFX Documentation

Regards,

Louis BOUDO
ST Software Developer | TouchGFX

View solution in original post

1 REPLY 1
LouisB
ST Employee

Hello @nico23,

Use 

#include <touchgfx/Utils.hpp>

touchgfx_printf("blabla %i",my_val),

 Check here : Simulator | TouchGFX Documentation

Regards,

Louis BOUDO
ST Software Developer | TouchGFX