Giter Site home page Giter Site logo

debugmode's People

Contributors

martinleopold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

debugmode's Issues

Variable Inspector Window crashes in some sketches

When trying out the ShiffmanFlocking3D example sketch from toxiclibscore/examples/misc ( link ), the following steps cause the Variable Inspector Window to crash:

  1. Set breakpoint on line 78 in ShiffmanFlocking3D tab. ( flock.addBoid... )
  2. Start Debug.
  3. Click on the sketch output window. The sketch pauses running.
  4. Press Step button twice to resume running sketch.
  5. Repeat steps 3 and 4, 2 to 3 times.
  6. Click on Variable Inspector Window.

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

Processing keywords not getting highlighted correctly

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.

DebugMode not working

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?

Java Mode examples don't appear in mode Examples

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");

Step into sometimes doesn't work

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.

Processing reference not available

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");

Inspector drop down views should stay open

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."

step command and icons

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 when stopping (sometimes?)

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)

Debug mode not working at all

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)

"Inspector" has = icon instead of italic i.

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.

DebugMode in Processing 2.0b9

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.