Skip to content
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

Show helpful error messages when setting line breakpoints #6

Open
nlfiedler opened this issue Jan 26, 2014 · 0 comments
Open

Show helpful error messages when setting line breakpoints #6

nlfiedler opened this issue Jan 26, 2014 · 0 comments

Comments

@nlfiedler
Copy link
Owner

Steve observes that setting a line breakpoint will silently fail to resolve for locations that do not have any code. This was done intentionally to allow for non-Java programming language (NJLP) support. However, Steve suggests the following:

The first thing would be to emulate JDB's behavior and issue a notice
that the breakpoint will be set as soon as the class is loaded. This
would help warn the user if they were expecting the breakpoint to be
set immediately.

Then we could have a heuristic for Java source files, since Java imposes
more stringent rules about class-to-source mapping than most other languages. When the user sets a line breakpoint, we could check the path, and if it ends with ".java", see if we've loaded a class that matches that package. If so, check its locations to see if it includes that line. If it doesn't, issue a warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant