|
-
Aug 23rd, 2023, 06:55 AM
#1
Thread Starter
Lively Member
Setting Automatic Breakpoints a vb6 Feature in Visual Studio
In Visual Studio later versions, I'm looking for a debugging feature similar to VB6's "Add Watch." This feature would automatically set breakpoints when specific conditions are met during runtime.
I've explored conditional execution, but it focuses on checking conditions at existing breakpoints, not before execution.
Is there a way to achieve this in Visual Studio?
I'm open to default settings, macros, or third-party extensions for setting automatic breakpoints based on conditions globally.
I've already looked into:
1. VB Forum Solution: Setting breakpoints within property setters, but it's challenging for many variables in a large codebase.
Referred links:
https://www.vbforums.com/showthread....-value-changes
https://www.vbforums.com/showthread....ariable-Change
2. Stack Overflow Forum Solution: Data breakpoints aren't available for managed code in Visual Studio 2019 or earlier
Tracing variable changes manually - using watch, local or find all reference, but it's impractical for numerous variables.
Another idea was to track variable usage, store values in an auxiliary variable, and trigger DebugBreak() when values change. However, this approach also becomes impractical with many variables in a large codebase.
Links:
https://stackoverflow.com/questions/...tudio-debugger
https://stackoverflow.com/questions/...ndition-is-met
None of the above solutions worked for me
I'd greatly appreciate any insights or recommendations on achieving this functionality. Thank you for your help!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|