From: <no...@so...> - 2002-07-29 19:55:31
|
Bugs item #588220, was opened at 2002-07-29 14:55 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=588220&group_id=44253 Category: Debugger Group: Annoying Status: Open Resolution: None Priority: 5 Submitted By: Brian Stoler (brianstoler) Assigned to: Nobody/Anonymous (nobody) Summary: Exception thrown when setting breakpoint Initial Comment: DrJava throws an exception when you set a breakpoint on an untitled file. Here's the stack trace (clipped the bottom where it's all system code): java.lang.IllegalStateException: This document does not yet have a file. at edu.rice.cs.drjava.model.definitions.DefinitionsDocument.getFile(DefinitionsDocument.java:220) at edu.rice.cs.drjava.model.DefaultGlobalModel$DefinitionsDocumentHandler.getFile(DefaultGlobalModel.java:1202) at edu.rice.cs.drjava.model.debug.DocumentDebugAction.<init>(DocumentDebugAction.java:76) at edu.rice.cs.drjava.model.debug.Breakpoint.<init>(Breakpoint.java:76) at edu.rice.cs.drjava.model.debug.DebugManager.toggleBreakpoint(DebugManager.java:388) at edu.rice.cs.drjava.ui.MainFrame.toggleBreakpoint(MainFrame.java:1314) at edu.rice.cs.drjava.ui.MainFrame$38.actionPerformed(MainFrame.java:604) at edu.rice.cs.drjava.ui.DefinitionsPane.processKeyEvent(DefinitionsPane.java:353) I guess "set breakpoint" should force you to save first? I saved the file, then I didn't get the exception again. -brian PS: That dialog for UnexpectedExceptions is great! ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=588220&group_id=44253 |