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