Basic debugging problems

53 views
Skip to first unread message

Maarten Truyens

unread,
Feb 1, 2012, 1:40:19 AM2/1/12
to Scala IDE User
I am confused about the way debugging is supposed to work in Scala
IDE.

I have experimented with several very simple files (basically a Main
that contains a println that calls some simple function in
another .scala file). Depending on whether I place the two files in a
subfolder of src (or instead in the main src folder), and whether I
put a "package [name]" at the top of the file, debugging works or does
not work.

However, I do not see the bigger picture here, and cannot determine
when debugging will work or will not work. In most of the cases,
Eclipse just ignores my breakpoints.

I also noticed that breakpoints sometimes do not disappear when I try
to remove them (whether by doubleclicking, or by right-clicking and
choosing the relevant option in the menu that appears). I think I have
also seen crash messages inside the popups that appear when you hover
over the breakpoint. Is this a known issue?

Many thanks!

Maarten

Kostas Kougios

unread,
Feb 1, 2012, 3:10:17 PM2/1/12
to Scala IDE User
Hi Maarten, try using the correct package name for all your source
files and place the source files in the appropriate src folder. I.e.
src/com.test/A.scala should have a package decl of package com.test .

I haven't had any issues with debugging but had issues with eclipse
locating the source files of libraries, when the source class is not
in the appropriate folder.
Reply all
Reply to author
Forward
0 new messages