Breakpoints does not trigger

miccet
Member Posts: 3
Sorry for this newbie question, I'm relatively new using this system. I searched through the other posts about debugging, but they don't quite cover what I'm after.
I have a web application that is running NAV as a backend. I would like to use the debugger to check that values are okay and that it reaches the points it should. I set a breakpoint in the codeunit and put the debugger to active. Nothing happens though when I run the code.
I have noticed that if I turn on the "Breakpoints on Triggers" option it does halt, but relatively far off since the code drills down into several functions. I can set breakpoints in this "mode" and it works fine, but I can't quite get where I need to be directly. Is there a way to do this? Or alternatively to be able to set the breakpoints in the debugging mode that appears when I use triggers as breakpoints?
Thanks
I have a web application that is running NAV as a backend. I would like to use the debugger to check that values are okay and that it reaches the points it should. I set a breakpoint in the codeunit and put the debugger to active. Nothing happens though when I run the code.
I have noticed that if I turn on the "Breakpoints on Triggers" option it does halt, but relatively far off since the code drills down into several functions. I can set breakpoints in this "mode" and it works fine, but I can't quite get where I need to be directly. Is there a way to do this? Or alternatively to be able to set the breakpoints in the debugging mode that appears when I use triggers as breakpoints?
Thanks
0
Comments
-
If you set a breakpoint, and it doesn't stop at your breakpoint, then the code that has the breakpoint doesn't get executed. Maybe try setting a breakpoint at the first statement of the code in that particular function and try again. If that doesn't work, go to where the function is called and set a breakpoint the statement before the function call, keep trying until you find a point where a breakpoint will catch. It should catch it no matter if you turn breakpoint at triggers on or off.0
-
I think the problem is that I set the breakpoint in the codeunit code and that this code is not the same as the one getting executed(?). I have a codeunit where I put a MESSAGE('test'); and that triggers, but no debugger appears.0
-
1) The object with the trigger must be closed before the trigger is working
2) If the CU is singleinstance, try to set the breakpoint before the cu is started.0 -
Sometimes the breakpoints are not executed when the codeline after an "IF" statement is only a single line.
In other cases, on my plattform, i found out, that whan i empty the table Breakpoints and set the Point new, the debugger stops (before deleting breakpoint he doesn't)
RegardsDo you make it right, it works too!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions