-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replay Debugger: Debug Tests #946
Comments
this is a wonderful approach, very excited that this is potentially being prioritized, would greatly improved developer ergonomics :) |
this same approach would extend very well to the "Execute Anonymous Apex With Editor Contents" command regarding the breakpoints warning, if none have been set you might consider just having the debugger stop on the first line. it's a use case I often use. although less much less frequently then run to first breakpoint, so your proposed behavior of continuing to the first breakpoint if one is set makes a lot of sense. that said, does seem tricky to figure out if a breakpoint is in the code path or not ... if it's not that could be pretty confusing UX in that everything would run launch do a lot of work and then just be done |
When is the planned release for this? |
This has been delivered |
In order to more easily use the replay debugger we will expose an option to “Debug Tests” in addition to the current “Run Tests” options.
UX
The user starts on a test class opened in VS Code. They would set breakpoints of where they want to debug.
Today, on each test class we show the codelens
Run All Tests
and on test methods we show the option Run Test. This feature will change these codelens to provide two options in each case instead of one.This would change the codelenes to the following.
When a user clicks either
Debug All Tests
orDebug Test
. The Following happens:Warning: Breakpoints/Checkpoints
If a user clicks Debug All Tests or Debug Test and doesn't have a breakpoint or checkpoint set, we should show a confirmation dialog.
Message Text:
You are about to debug tests, but don't have any breakpoints or checkpoints set. You should set some before running this command.
Buttons:
Configuration Option: Interactive Debugger
Because some users have purchased interactive debugger licenses, we should set a preference to use the interactive debugger when running tests instead of the replay debugger. The functionality would be the same, except it would happen in real-time.
Test Panel
The debug test(s) options should also be invokable from the test panel. Functionality is the same.
The text was updated successfully, but these errors were encountered: