Allow removal of watchpoints
This commit is contained in:
parent
2dcb5017a1
commit
fa9cfb940e
|
@ -16,6 +16,7 @@
|
|||
|
||||
* Current
|
||||
** Added
|
||||
Added the ability to remove watch points in the webide
|
||||
|
||||
** Changed
|
||||
Expanded stage0 web IDE to include the PC and instruction counter
|
||||
|
|
|
@ -65,8 +65,11 @@ class StringGenerator(object):
|
|||
|
||||
@cherrypy.expose
|
||||
def DEBUG(self, Inst=""):
|
||||
UI.Watchpoints
|
||||
UI.Watchpoints.add(int(Inst, 16))
|
||||
if int(Inst, 16) in UI.Watchpoints:
|
||||
UI.Watchpoints.remove(int(Inst, 16))
|
||||
print("Watchpoint Deleted: " + Inst)
|
||||
else:
|
||||
UI.Watchpoints.add(int(Inst, 16))
|
||||
return UI.returnPage()
|
||||
|
||||
@cherrypy.expose
|
||||
|
|
Loading…
Reference in New Issue