简体   繁体   English

如何在 Android 上的本机活动中调试堆?

[英]How to debug heap in a Native Activity on Android?

Is there a way to debug the heap in C++ in a Native Activity for overrun/underrun errors?有没有办法在本机活动中调试 C++ 中的堆以解决溢出/欠载错误? There is zero Java usage in my application.我的应用程序中的 Java 使用率为零。

Something I know about is the MALLOC_CHECK_ which doesn't seem to be applicable to GNU libstdc++.我所知道的是MALLOC_CHECK_似乎不适用于 GNU libstdc++。 I'm looking for something that would work in that context.我正在寻找可以在这种情况下工作的东西。

The solution that worked for me is to get my iOS build working and turn on all the memory diagnosis tools.对我有用的解决方案是让我的 iOS 构建工作并打开所有内存诊断工具。 Albeit this is not an ideal situation for most, it solved the issue I was having.尽管这对大多数人来说不是理想的情况,但它解决了我遇到的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM