cancel
Showing results for 
Search instead for 
Did you mean: 

Debug Touchgfx simulation using Visual Studio: How to add external code?

GBert.2
Senior

I'm using Visual Studio (TouchGFX/simulator/msvs/Application.sln) to debug my project's simulation.

I want to understand what is causing an exception.

The problem is that the exception is not in the codebase.

See the call stack here

0693W00000GYc6xQAD.pngHow do I add those external files to the Visual Studio Solution?

Regards,

Gabriel

~~

EDIT:

After further investigation, It appears that the VS solution is not configured to see the Middlewares\ST\touchgfx directory. Could this be the problem?

2 REPLIES 2
Michael K
Senior III

I think FrontendApplication::handleTickEvent() is called by the TouchGFX engine, which comes as a prebuilt library and links into user code. VS may not be able to see the exact stack trace for functions inside the library.

Embedded UI/UX Consulting: cadenza.design
GBert.2
Senior

Humm I think you're right Michael. this seems likely.

I'm not sure if somebody from ST would have a trick to debug the prebuilt library.

The more I see the code, the best I can debug.