martinleopold / debugmode Goto Github PK
View Code? Open in Web Editor NEWDebugger for the Processing Development Environment
Debugger for the Processing Development Environment
When trying out the ShiffmanFlocking3D example sketch from toxiclibscore/examples/misc ( link ), the following steps cause the Variable Inspector Window to crash:
The window is displayed without any variables. Here is the stack trace in the console.
I'm running Processing 2.0a6 revision 9724, Windows 7 64-bit, Java 1.7.0, 64-bit
Unlike in Java mode, certain Processing keywords are not getting highlighted in the editor:
frameCount, mouseX, mouseY, keyPressed, Key, KeyCode, width - turn to grey(#7e7e7e) instead of blue(#006699)
height turns black instead of blue.
I think this may have something to do with the custom TextAreaPainter.
Hi,
I am using Processing 2.0b6 32bit (on a 64bit Win7 machine, 64bit processing doesn't work). I have processing extracted here
C:\Users\myname....\processing-2.0b6-windows32\processing-2.0b6
And my sketch (draw5) is at C:\Users\myname\Documents\Processing\draw5
"modes" directory was already in the sketchbook folder C:\Users\myname\Documents\Processing
So I just copy 'dist\DebugMode" inside "modes". So it finally looks like
C:\Users\myname\Documents\Processing\modes\dist\DebugMode
Then I restart processing. Open my sketch. But when I click to "JAVA" on the right side, I don't see any "DEBUG" mode. I am using v0.7.1 from http://debug.martinleopold.com/
Can you please help?
The standard Processing examples don't appear in the mode examples. This can be fixed by adding this line to the DebugMode constructor:
// Fetch examples from java mode
examplesFolder = Base.getContentFile("modes/java/examples");
After a few steps in a a sketch, it often happens that the step into command doesn't work.
In the same program, it generally works the first times I use it, but I cannot be sure it will work the following time. By not working, I mean the cursor doesn't move. I can use the step command instead which allways works.
If the cursor comes again on a line on which step into didn't work a moment before, the command may work again.
This problem happens really often (less than one minute of testing), but I'm unable to provide a precise sequence to reproduce it.
Reference from the Processing --> help --> reference menu doesn't open.
Fix - Add this line to DebugMode constructor (similar to the Examples bug fix):
referenceFolder = Base.getContentFile("modes/java/reference");
I'm running processing 2.2.1
with 0.7.2 (for processing 2.0).
I set a break point, but the debuger seems to blow right past it.
Closing and reopening a sketch causes breakpoints to be lost.
Andres reports via email:
"I tested against r9819, and appears to work quite well. Just one minor note so far, if I open the drop-down view of the primitive values, and then I click continue or step, then it is closed automatically. I think it should remain open."
The width of the breakpoints bar increases on Windows. It's fine on OS X and Ubuntu. Here's a screenshot: http://i.imgur.com/ErRY1.png
Thanks a lot for this work !! I appreciate it very much and my pupils will appreciate it too.
I would like icons for step into and step out commands.
Using those commands through the menu is not convenient, and when I use the keybooard
each time I type Ctrl+J (or Ctrl+Maj+J) a new line is inserted in the source code.
I think that for a beginner, icons are very useful and for a more advanced user, single key commands (such as f5, f6, f7) would be more efficient than commands involving 2 ou 3 keys (such as Ctrl+Maj+J).
Exception in thread "AWT-EventQueue-0" com.sun.jdi.VMDisconnectedException: Got IOException from Virtual Machine
at org.eclipse.jdi.internal.connect.PacketSendManager.sendPacket(PacketSendManager.java:89)
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:186)
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:226)
at org.eclipse.jdi.internal.MirrorImpl.requestVM(MirrorImpl.java:242)
at org.eclipse.jdi.internal.StringReferenceImpl.value(StringReferenceImpl.java:56)
at com.martinleopold.mode.debug.VariableNode.getStringValue(Unknown Source)
at com.martinleopold.mode.debug.VariableInspector$ValueCellRenderer.getTableCellRendererComponent(Unknown Source)
at javax.swing.JTable.prepareRenderer(JTable.java:5714)
at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:2072)
at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1974)
at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:1770)
at javax.swing.plaf.ComponentUI.update(ComponentUI.java:153)
at javax.swing.JComponent.paintComponent(JComponent.java:760)
at javax.swing.JComponent.paint(JComponent.java:1037)
at javax.swing.JComponent._paintImmediately(JComponent.java:5106)
at javax.swing.JComponent.paintImmediately(JComponent.java:4890)
at javax.swing.RepaintManager$3.run(RepaintManager.java:814)
at javax.swing.RepaintManager$3.run(RepaintManager.java:802)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:802)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:745)
at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:725)
at javax.swing.RepaintManager.access$1000(RepaintManager.java:46)
at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1680)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
I'm using Processing 2.0 and when I enable DebugMode and try to debug my code, I get the following error message in my console:
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: com.martinleopold.mode.debug.DebugRunner.getSketchParams()[Ljava/lang/String;
at com.martinleopold.mode.debug.DebugRunner.launch(Unknown Source)
at com.martinleopold.mode.debug.Debugger.startDebug(Unknown Source)
at com.martinleopold.mode.debug.DebugToolbar.handlePressed(Unknown Source)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:462)
at java.awt.Component.processMouseEvent(Component.java:6379)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6147)
at java.awt.Container.processEvent(Container.java:2083)
at java.awt.Component.dispatchEventImpl(Component.java:4744)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4277)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
at java.awt.Container.dispatchEventImpl(Container.java:2127)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:669)
at java.awt.EventQueue$2.run(EventQueue.java:667)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:683)
at java.awt.EventQueue$3.run(EventQueue.java:681)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
In the documentation at http://debug.martinleopold.com/ it says
' Now is a good time to open the "Inspector", click the icon with an "i" symbol. (Inspector opens...)'
I don't know if the documentation is out of date or what, but when I run in debug mode the icon is an equals sign "="
The tooltip says variable inspector so I suppose it is probably meant to be an "=" sign although I think the italic i is a better icon.
Hey Martin,
running DebugMode 0.7.1.1421 in Processing 2.0b9 i get:
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: com.martinleopold.mode.debug.DebugRunner.getSketchParams()[Ljava/lang/String;
at com.martinleopold.mode.debug.DebugRunner.launch(Unknown Source)
at com.martinleopold.mode.debug.Debugger.startDebug(Unknown Source)
at com.martinleopold.mode.debug.DebugToolbar.handlePressed(Unknown Source)
at processing.app.EditorToolbar.mousePressed(EditorToolbar.java:447)
at java.awt.Component.processMouseEvent(Component.java:6379)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6147)
at java.awt.Container.processEvent(Container.java:2083)
at java.awt.Component.dispatchEventImpl(Component.java:4744)
at java.awt.Container.dispatchEventImpl(Container.java:2141)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4619)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4277)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4210)
at java.awt.Container.dispatchEventImpl(Container.java:2127)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4572)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:710)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:669)
at java.awt.EventQueue$2.run(EventQueue.java:667)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$3.run(EventQueue.java:683)
at java.awt.EventQueue$3.run(EventQueue.java:681)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:680)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Why is the user registration page missing, only 'Please sign in' ??? http://www.cofacpaubook.com
"HumHub is currently in debug mode. Disable it when running on production!
See installation manual for more details." what is this ???
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.