debugging Gosu

534 views
Skip to first unread message

csmlmgr

unread,
May 13, 2011, 2:39:33 PM5/13/11
to gosu-lang
Hello,

I have been checking Gosu for a while but the immature tools have
always stopped me from using it for real. I did some tests recently
and loved the language so much that I will use it for a new project I
have no matter what: congratulations for such a productive JVM
language!

On the other hand, I would really like to have debugging in any way
but it seems like it doesn't at all.
- Tried Eclipse but it uses Gosu 0.7x and that's too old. And Helios
(I know, not supported) just keeps complaining while trying to set up
a break point.
- Tried IntelliJ (I can live without code completion for now) 8.x, 9.x
and 10.x and breakpoints are always ignored.
- Gosu integrated editor has no debugging support, otherwise I would
use it over anything else, it is simple and nice.

The IntelliJ plugin and a post in this group about ronin development
mentions debugging so perhaps I'm doing something wrong. I do tests
but having debugging is a must.

And yes, I know that the now open source IntelliJ plugin will be
updated shortly but I would really like something now and
(unfortunately) plugin development is not my thing.

Is there a way to debug Gosu? Any way?

Thanks a lot.

//cs



Gus Prevas

unread,
May 13, 2011, 2:41:24 PM5/13/11
to gosu...@googlegroups.com
Breakpoints in IntelliJ usually work for me, but there have definitely been cases where they don't.




--
You received this message because you are subscribed to the Google Groups "gosu-lang" group.
To post to this group, send email to gosu...@googlegroups.com.
To unsubscribe from this group, send email to gosu-lang+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gosu-lang?hl=en.


Alan Keefer

unread,
May 13, 2011, 2:52:01 PM5/13/11
to gosu...@googlegroups.com
IntelliJ 10.0.2 is working pretty well for me. There are definitely
some corner cases where things go a little wrong, but for the most
part it works well.

Are you trying to debug a .gsp file, a .gs, or a .gsx? And what's the
mechanism that you're using to run it?

For testing, there are various strategies that you can use to get
tests to run in IntelliJ, though they're not the most elegant. Check
out the TosaSuite test suite for the Tosa project:

https://github.com/akeefer/Tosa/blob/master/tosa-test/test-src/test/TosaSuite.java

Basically, we're just creating a JUnit 4-style suite class, and then
the tests themselves are just normal JUnit 4 tests, using the @Test
annotation. You can then run the whole suite in IntelliJ, and if you
run tests that way and use the "debug" option, you should be able to
debug your Gosu code.

-Alan

csmlmgr

unread,
May 13, 2011, 3:03:25 PM5/13/11
to gosu-lang
Hello,

Thanks for your prompt answer, this just builds up confidence in Gosu.

Using IntelliJ 10.0.2 I tried to debug a .gsp without success. I
completely ignored .gs as .gsp didn't work but after your answer I
tried a .gs and it worked! Thanks a lot!
That was just what I needed to start using Gosu.

And thanks for the Tosa reference; I saw the project this morning but
I didn't pay attention to the tests; now I will for sure.

//cs




On May 13, 1:52 pm, Alan Keefer <akee...@gmail.com> wrote:
> IntelliJ 10.0.2 is working pretty well for me.  There are definitely
> some corner cases where things go a little wrong, but for the most
> part it works well.
>
> Are you trying to debug a .gsp file, a .gs, or a .gsx?  And what's the
> mechanism that you're using to run it?
>
> For testing, there are various strategies that you can use to get
> tests to run in IntelliJ, though they're not the most elegant.  Check
> out the TosaSuite test suite for the Tosa project:
>
> https://github.com/akeefer/Tosa/blob/master/tosa-test/test-src/test/T...
>
> Basically, we're just creating a JUnit 4-style suite class, and then
> the tests themselves are just normal JUnit 4 tests, using the @Test
> annotation.  You can then run the whole suite in IntelliJ, and if you
> run tests that way and use the "debug" option, you should be able to
> debug your Gosu code.
>
> -Alan
>
>
>
> On Fri, May 13, 2011 at 11:41 AM, Gus Prevas <kpre...@gmail.com> wrote:
> > Breakpoints in IntelliJ usually work for me, but there have definitely been
> > cases where they don't.
>

Carson Gross

unread,
May 13, 2011, 3:46:45 PM5/13/11
to gosu...@googlegroups.com
Better Tooling is coming Real Soon Now (tm).

By late fall we'll be in Moscow!

Cheers,
Carson
Reply all
Reply to author
Forward
0 new messages