- changed status to open
Debugger tool references schema.<SObject> when debugging trigger with the same name as the SObject
Issue #2395
resolved
When a trigger exists with the same name as an SObject
(e.g., Account.trigger
), the step debugger opens and steps through the schema object file (e.g., Account) rather than the trigger file.
How to reproduce:
- Create a trigger on an Account object and name it “Account”.
- Add some code to the trigger class so that you can attempt to step through it in the debugger
- Create a test class that creates an Account record so that it invokes the
Account trigger
- Run the unit test using the debugger
- As you step through, you should notice that it opens the
Schema.Account
file rather than theAccount.trigger
file
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Delivered in 2.2.7.4.
- Log in to comment
Fix committed for the next build.