Allow removal of watchpoints

This commit is contained in:
Jeremiah Orians 2017-12-16 20:48:38 -05:00
parent 2dcb5017a1
commit fa9cfb940e
No known key found for this signature in database
GPG Key ID: 7457821534D2ACCD
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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