Debugger Question - Stop if value e.g. integer is 1
infonote
Member Posts: 233
Is there a built-in function to stop the debugger if a value is a certain amount e.g. integer is a certain number?
A sort of dynamic break-point which stops only if it is a certain value?
Thanks in advance.
A sort of dynamic break-point which stops only if it is a certain value?
Thanks in advance.
Blog: http://www.kaizenlog.com
0
Comments
-
Wouldn't that be great!!!

No. There isn't.
But you can actually add it in the code if it is for testing...
0 -
Yes it would be great. Of course you can add an IF statement in the code and put a breakpoint in there. I was just curious to see if there is a built-in function.
Thanks a lotkapamarou wrote:Wouldn't that be great!!!
No. There isn't.
But you can actually add it in the code if it is for testing...
Blog: http://www.kaizenlog.com0 -
This would be a wonderful feature.
You can't really. Say for example you are working too find when a particular field in a table is populated with a particular value. There might be 20 different places in the code where the field is updated, (a good example is when trying to find an issue with whse. shipping and available quantity or if you are trying to work out why Navision planning engine is suggesting the purchase of a certain qty of an item), if you knew all the places it might happen you wouldn't need the debugger. Its finding that one bit of hidden code that takes all the time.kapamarou wrote:But you can actually add it in the code if it is for testing...
It would be great to tag the Sales Line for example, and have the debugger break when (for example) Quantity > 0 etc.David Singleton0 -
It would be great to have watch functionality where you can set values to look for. It would also be great to have an immediate window where you can manipulate values at debug time, and you can move the debug cursor.
I am not holding my breath
0 -
Hi Daniel
You have used .NET environment to many times I guess :-$0 -
0
-
Actually those were capabilities of the MS Access VBA debugger that was included in Office 95, almost 15 years ago, way before .NETta5 wrote:You have used .NET environment to many times I guess :-$0 -
David Singleton wrote:You can't really. Say for example you are working too find when a particular field in a table is populated with a particular value.
Of course.
I didn't mean that the debugger would become powerful with this trick. But it is useful when you need for example to stop a batch process at a specific point for a specific item that will come after hundreds of loops. You don't want to place a breakpoint and stop so many times until you reach item X and then... accidentally hit F5 again... #-o0 -
kapamarou wrote:David Singleton wrote:You can't really. Say for example you are working too find when a particular field in a table is populated with a particular value.
Of course.
I didn't mean that the debugger would become powerful with this trick. But it is useful when you need for example to stop a batch process at a specific point for a specific item that will come after hundreds of loops. You don't want to place a breakpoint and stop so many times until you reach item X and then... accidentally hit F5 again... #-o
Ah yes I understand, yes that I also do.David Singleton0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions


