Replies: 1 comment 1 reply
-
So, there is already support for conditional breakpoints, and so much more. The UI/UX for it can definitely be improved, but check out https://pcsx-redux.consoledev.net/lua/#crash-bandicoot-using-conditional-breakpoints Long story short, you can open the Lua console and type the following: bp = PCSX.addBreakpoint(0x80012480, 'Exec', 4, 'Some Conditional Breakpoint', function()
local regs = PCSX.getRegisters()
if regs.GPR.n.v0 == 0 then PCSX.pauseEmulator() end
end) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A conditional breakpoint is a breakpoint that is triggered only when a defined condition is true.
For example many debuggers find it useful to add a breakpoint that pauses emulation only when the $v0 register is equal or not equal to some number.
In the Breakpoints window just add a TextBox where the user can define the condition of the breakpoint that he or she want to add.
If the TextBox is empty then the new breakpoint is unconditional.
Beta Was this translation helpful? Give feedback.
All reactions