Skip to content

Debugger not working when selecting Debug from the menu #282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
processing-bot opened this issue Aug 22, 2021 · 2 comments
Closed

Debugger not working when selecting Debug from the menu #282

processing-bot opened this issue Aug 22, 2021 · 2 comments

Comments

@processing-bot
Copy link
Collaborator

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)
@processing-bot
Copy link
Collaborator Author

Created by: benfry

Now fixed for 4.0 beta 2, thanks for the report.

The issue was that not everything was getting set up properly if you selected the option from the menu, but it was working fine if you used the toolbar button.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant