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

2011/11/28

debugger troubles on OSX

dedoig213 dedoig213

2011/11/28

#
Using 2.1.2 on OSX 10.6.8 (Snow Leopard). When I open a project (not running anything yet), I get 2 GreenFoot icons on my dock, and Activity Monitor shows 2 Greenfoot processes running. Not sure if this is related to the issue below. When I open a project (have not started "running" it yet) and try to open the debugger, the Debugger window says "Thread is running. Thread must be stopped to view details". Halt and Terminate buttons are enabled, but don't seem to do anything. Am I doing something wrong? Thanks!!
kiarocks kiarocks

2011/11/28

#
Two apps are correct. Terminate will relaunch your project if it is running. Halt "stops" it if it is running.
dedoig213 dedoig213

2011/11/28

#
Glad the 2 apps is correct. Is the "Thread is running ... etc." message normal when I have just opened the project, not yet run done any interactions (Run, Act, create object, etc.) and just opened the debug window? How do I use the debugger? How to set a breakpoint? All I see is the Debugger window with no contents other than the "Thread is running. Thread must be stopped to view details" message and the Halt and Terminate buttons enabled. Pressing Halt does nothing, and pressing Terminate closes and then re-opens the project window. Thanks!
kiarocks kiarocks

2011/11/28

#
Setting Breakpoints: In your code there is something like this:http://i1094.photobucket.com/albums/i442/kiavoldemort/Screenshot2011-11-28at61041AM.pngClicking on the side creates something that looks like this:http://i1094.photobucket.com/albums/i442/kiavoldemort/Screenshot2011-11-28at61423AM.pngThat stop sign is a break point. When your code runs, the debugger window will pop up.
bourne bourne

2011/12/3

#
Anyone have problems with the debugger sometimes showing contents and sometimes not? When have a break point and stepping through the code, it will sometimes remove showing the contents and sometimes show them, and recently I had trouble trying to get anything to ever show. Furthermore, sometimes the debugger doesn't show up at all, though the break point was stopped at. And Controls->Show Debugger doesn't do anything. For the visibility of the contents the debugger shows, To get them to show I usually try switching between the call sequence, or stepping once. But sometimes that doesn't work.
kiarocks kiarocks

2011/12/3

#
Never had trouble Running 10.6.8 on a mac mini. Greenfoot 2.1.2
bourne bourne

2011/12/3

#
I'm running the same, on a macbook pro.
davmac davmac

2011/12/3

#
First of all - there's a bug with displaying multi-dimensional arrays in the debugger, which affects Greenfoot 2.1.2. It might prevent display of all variables if you happen to have a multi-dimensional array in scope. This will be fixed in the next Greenfoot version. If there's a separate problem, we'd appreciate it if you could find some definite sequence to reproduce it (even if you have to send us a copy of the scenario). You can send such information to support@greenfoot.org. Thanks!
bourne bourne

2011/12/3

#
Alright thanks davmac! The multi-dimensional array thing makes sense for a lot of the problem. I will see if there is anything else.
You need to login to post a reply.