I want to set in IDA breakpoint when a specific value is written on the stack.

I know how to set hardware breakpoint, but I can set it only by address.

1 Answer 1


You simply cannot. There are no mechanisms by which you can break execution on a specific value write. You'll have to use any other mechanisms, probably a memory breakpoint, and a conditional check of what's at the top of the stack.

  • How can I set memory breakPoint and check the top of stack?
    – Keystone
    Aug 31, 2018 at 14:14
  • That'd be slow, but you can set a conditional memory breakpoint in IDA on stack pages.
    – NirIzr
    Aug 31, 2018 at 18:23
  • Can you please tell me how do I set that? I know only on breakpoint I set on code or by address(hardware) i domt know about memory breakpoint in ida on stack pages.
    – Keystone
    Sep 1, 2018 at 17:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.