简体   繁体   中英

How do I set a watchpoint in Netbeans?

I'm working on an issue where a value is changing, but I don't know who/what/where/when it's changing. Way back the in the day when I was doing C programming in DOS we had "watchpoints" that could be put on a variable to cause a break when it changes. I'm not finding that in NetBeans (Java application specifically). What's the comparable method for NetBeans/Java?

If you right-click on the line number, you can set a breakpoint. If you right-click again, you can edit the properties of the breakpoint and set a condition.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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