79786324

Date: 2025-10-09 11:14:58
Score: 1
Natty:
Report link

Apex debugger on VSCode is reading the log you provide. It will stop when the line of the log reaches a breakpoint in VSCode that matches the log.
If it is not stopping, it could be a number of reasons:

In my experience, the debugger is generally working, but sometimes it just doesn't work. In those cases, I reduce my test to just some lines, try again to see if it works, and then add code to the test in smaller steps.

On a side note, you are using Test.startTest in your @testSetup method. This isn't advisable, and could be messing with your debugger as well.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @testSetup
  • Low reputation (0.5):
Posted by: Alvaro