Skip to main content
Senior III
Jun 3, 2024 9:46 AM UTC
Solved

How to print on terminal while debugging TouchGFX

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;

 

This topic has been closed for replies.
LouisBBest answer
ST Employee
Jun 3, 2024 10:27 AM UTC

Hello @nico23,

Use 

#include <touchgfx/Utils.hpp>

touchgfx_printf("blabla %i",my_val),

 Check here : Simulator | TouchGFX Documentation

Regards,

Louis BOUDOST Software Engineer | TouchGFX

1 reply

LouisBBest answer
ST Employee
Jun 3, 2024 10:27 AM UTC

Hello @nico23,

Use 

#include <touchgfx/Utils.hpp>

touchgfx_printf("blabla %i",my_val),

 Check here : Simulator | TouchGFX Documentation

Regards,

Louis BOUDOST Software Engineer | TouchGFX