VS Debugger won't hit foreach

CC 96 Reputation points
2021-06-10T14:36:59.45+00:00

If I set a breakpoint at line 240 inside a foreach loop, my debug session skips right over that breakpoint and never hits.
I can set a breakpoint in line 235 just outside/above the foreach loop, and I see that specific breakpoint.

104314-image.png

I have a new install of VS on a laptop and seeing this issue.
On my older desktop I set the same 2 breakpoints, and debugger breaks on both lines of code as expected.

Developer technologies | Visual Studio | Debugging
{count} votes

Accepted answer
  1. CC 96 Reputation points
    2021-06-10T16:09:45.447+00:00

    my apologies, mixing data up...debugger works now that I have activities correctly setup.


1 additional answer

Sort by: Most helpful
  1. CC 96 Reputation points
    2021-11-23T16:02:20.687+00:00

    A work package is the parent table, and activities fall under the work package >> i.e. activities are the child records.
    In my test scenario, I got the WorkPackage ID mixed up, and when the debugger was running, I actually had no child records/activities.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.