```
from pykd import *
class Debugger(eventHandler):
def __init__(self):
initialize()
eventHandler.__init__(self)
def onBreakpoint(self, no):
print "BREAK POINT"
return eventResult.Proceed
def start(self):
startProcess(r"test.exe")
#setBp(0x40126c) # it doesn't work :(
#dbgCommand("bp 40126c") # it work well
go()
Debugger().start()
```
test.exe binary's main function address is 0x40126c and noaslr.
my test result give me dbgCommand works well but setBp doesn't work.. what's wrong??
Comments: ** Comment from web user: kernelnet **
from pykd import *
class Debugger(eventHandler):
def __init__(self):
initialize()
eventHandler.__init__(self)
def onBreakpoint(self, no):
print "BREAK POINT"
return eventResult.Proceed
def start(self):
startProcess(r"test.exe")
#setBp(0x40126c) # it doesn't work :(
#dbgCommand("bp 40126c") # it work well
go()
Debugger().start()
```
test.exe binary's main function address is 0x40126c and noaslr.
my test result give me dbgCommand works well but setBp doesn't work.. what's wrong??
Comments: ** Comment from web user: kernelnet **
Read this:
http://pykd.codeplex.com/discussions/646458
Try to change your code:
```
def start(self):
startProcess(r"test.exe")
self.myBp = setBp(0x40126c) # it should work :(
```