Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the use of dprintf in Tool

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "what is the use of dprintf in Tool", the content is simple and clear, hoping to help you solve your doubts, the following let the editor lead you to study and learn "what is the use of dprintf in Tool" this article.

This "dynamic printf" is a new function added from Vx67. It is in WorkBench (not in Code) and dynamically inserts print statements based on breakpoints. When the program executes to a specific location, it can be used to print the value of variables. Currently, the supported variable types are int and char*.

Start the simplest example

There is a variable I in the program whose value is changing all the time. Because it is Local, you cannot view it in Shell; if you add a breakpoint, it will interrupt the execution of the program and affect the cycle of the loop.

Then try dprintf: start Debugger first (for example, through the Attach task)

Then right-click in the appropriate location in the code and select Add Dynamic printf

Just add the content to be printed in the dprintf properties page that opens

After clicking OK, you can see the dprintf statement in the breakpoint window. Soon, the Target side also output the execution result of dprintf.

If you are interested, you can try several properties of dprintf

The above is all the content of this article "what is the use of dprintf in Tool?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report