This site requires JavaScript, please enable it in your browser!
Greenfoot back
cslaviero
cslaviero wrote ...

2015/9/2

Debbuging Greenfoot source code

cslaviero cslaviero

2015/9/2

#
Hey there, i've started to take a look at greenfoot/bluej soure code recently and although I could make it run via Eclipse (Mars), I'm not being able to debug it. I've added breakpoints at some methods (specifically I've added a breakpoint on actionPerformed on CompileAllAction.java and actionPerformed on RunSimulationAction.java on /greenfoot), but Eclipse does not stop at these places. I've tried to clean and rebuild the project but had no success at all. I was wondering if my failure has something to do with the way greenfoot runs along with bluej? I've read greenfoot-architecture which is on /doc and this hypothesis was raised in my list of potential causes for this to happen. Is there anything I've may be missing to be able to debug the source code properly? Any help would be great.
davmac davmac

2015/9/5

#
You can't set breakpoints in the user VM; Eclipse only debugs the main VM. There's no way around this. If you need to debug in the user VM, using print statements is about your only option.
cslaviero cslaviero

2015/9/5

#
Thanks davmac, I've started using print as a workaround, I guess I'll have to make it the permanent solution :)
You need to login to post a reply.