Skip to content

Debugger not working when selecting Debug from the menu #282

@processing-bot

Description

@processing-bot

In GitLab by @nhurst on Aug 22, 2021, 19:08

Description

Using Processing 4.0b1, when Debugger is enabled and a breakpoint added, debugger crashes. Crash dump below.

Expected Behavior

Debugger should work as in Processing 3.x. Breakpoints should not crash debugger

Steps to reproduce

Can be replicated using:

void setup(){
  size(200,200);
}

void draw() {
  background(255);
  rect(10,10,180,180);
}

with breakpoint on "rect" line and using either Continue or Step

Environment

Processing 4.0b1
Mac Pro, MacOS 11.4

Crash is:

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
	at processing.mode.java.JavaToolbar.deactivateStep(JavaToolbar.java:186)
	at processing.mode.java.JavaEditor.deactivateStep(JavaEditor.java:1750)
	at processing.mode.java.debug.Debugger$7.run(Debugger.java:769)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
	at java.base/java.security.AccessController.doPrivileged(Native Method)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions