Is there a way to dump \ print ucHeap content ?
I’d like to see the variables allocated and their values
ucHeap is an array in the memory and you can dump the raw memory content using debugger.
You can keep track of allocated blocks (i.e. return value from pvPortMalloc) and dump those also separately.
This is totally dependent on compiler and/or included libraries. If you have to know, you could build something like ummalloc and override the built in heap libraries. Then you can at least view all the allocations and sizes.
Granted it doesn’t help in your case, but vPortGetHeapStats() provides heap usage stats.