Offline Debugging Incorrect when running a subclass

Issue #304 resolved
Nathen Drees created an issue

I have a batch job where the bulk of the work is done in a super class, with subclasses implementing just a few methods. When I try to use the offline debugger to debug the super class, it doesn't attach to the correct file, even though the logs are reporting the correct location for which method it entered.

Ex:

  1. Implement Database.batchable in an abstract super class, and add a protected abstract method to be implemented by subclass.

  2. Implement subclass and method.

  3. Add a checkpoint in the execute method in the superclass.

  4. Try to replay the log, the deubgger will attach to the first line it can find in the subclass, and you cant step through the superclass.

Comments (3)

  1. Scott Wells repo owner

    Thanks for the report. Glad to see folks are playing with the debugger! And of course not surprised there are bugs to be fixed. I appreciate the detailed how-to-reproduce info as well. Hopefully I'll be able to see the problem and fix it.

  2. Scott Wells repo owner

    This should be fixed now as of 1.8.3.0/2.0.2.3. I implemented a large number of fixes/enhancements to the offline debugger. If you find that the problem still occurs, please let me know.

  3. Log in to comment