Game Development Community

I almost give in - breakpoints just won't work

by Sam Burns · in Torsion · 02/04/2012 (5:51 am) · 1 replies

Okay so I downloaded the latest version tgb, I was operating off of an earlier version which needed to have some code updated which didn't work either. So I ditched that, I am now on 1.7.6. When I downloaded the latest version it didn't have a debug version of TGBGame so I opened up the project from the game builder by pressing the VS2008 button and got it building. After a about a cup of tea later I had a TGBGame_DEBUG.exe in my T2DProject folder. This seemed like a small success. I celebrated by opening up the game builder and creating a simple scene based upon the Ninja Tutorial. I saved this and ran it and I got a static Ninja which is exactly what I wanted to get. So on to Torsion, I started a new project in Torsion, set the base directory to my game directory and then created a new configuration called 'Debug'. I set the executable to TGBGame_DEBUG.exe in the T2DProject folder of my 1.7.6 directory (have uninstalled old version btw) and set a couple of breakpoints. One at Canvas.setContent(mainScreenGui); in startGame(%level) and one at exec("./gameScripts/game.cs"); on initializeProject in main.cs and hit the run button. Still it will not stop on the breakpoint, I just get the same screen I get when running from the builder.



Things I have tried:

Is my debug version really a debug version? Well the file size is 7.25MB compared to 3.09MB for the release version. I checked my configurations in VS2008 and they were all set to debug.

Checked on a old project that does actually display something. It just ran as normal and I could run around completely bypassing the breakpoints.

Help :)

#1
02/04/2012 (7:39 am)
ok so after about three hours of messing around I rebooted and guess what! I stopped straight on a breakpoint. Problem fixed.