Add a debug mode where the function stack is traced.
When a breakpoint is set, the workshop code output is modified so when the line where the breakpoint was added is executed, it will log the breakpoint ID and the current variables.
The variable values are shown in vscode.
The debugger will watch the Overwatch custom game log file. When a breakpoint is hit, it will send simulated input to the Overwatch window to execute the pause game hotkey.
This may cause the time from when the breakpoint is hit to the pause to be delayed for a few ticks.
If the breakpoint is disabled or removed, the breakpoint is ignored.
If the breakpoint has a hit count, the breakpoint is ignored until it is activated the specified number of times.
If the breakpoint has a condition, that condition is evaluated before the game is paused.
This would be easy to implement for simple comparisons, ex variable == 3, but for function calls, things would get very complex.
Conditional breakpoints are probably not worth the effort it would take to implement them.
This is very low priority right now, but it would be fun to implement.
variable == 3
, but for function calls, things would get very complex.This is very low priority right now, but it would be fun to implement.