0

There's an extern variable defined in the code, which I need to set to true/false through the debugger (for enhanced debug dumps and stuff). What would be the command to change its value from the cmd line in windbg (equivalent to gdb's p flag=1?

2 Answers 2

2

Got it :

?? <module>!<variable>=<value>

1

You can also use the Edit Memory command e to edit a byte:

eb module!variable value

Note that there's also ew, ed, eq, ep, etc.

-scott

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.